Skip to content
Snippets Groups Projects
Commit 1702ba5a authored by Bob Mottram's avatar Bob Mottram
Browse files

Run pleroma blocking script after firewall entry

parent ab2cba80
No related branches found
No related tags found
No related merge requests found
......@@ -1926,7 +1926,7 @@ function domain_blocking_add {
trap "rm -f $data" 0 1 2 5 15
dialog --title $"Block a domain or user" \
--backtitle $"Freedombone Control Panel" \
--inputbox $"Enter the domain name or GNU Social/postActiv nick@domain that you wish to block" 8 60 "" 2>$data
--inputbox $"Enter the domain name or GNU Social/postActiv/Pleroma nick@domain that you wish to block" 8 60 "" 2>$data
sel=$?
case $sel in
0)
......@@ -1938,7 +1938,7 @@ function domain_blocking_add {
dialog --title $"Block a domain" \
--msgbox $"The domain $blocked_domain has been blocked" 6 40
else
dialog --title $"Block a GNU Social/postActiv nickname" \
dialog --title $"Block a GNU Social/postActiv/Pleroma nickname" \
--msgbox $"$blocked_domain has been blocked" 6 40
fi
fi
......
......@@ -547,6 +547,9 @@ function firewall_block_domain {
if [ -f /usr/bin/postactiv-firewall ]; then
/usr/bin/postactiv-firewall
fi
if [ -f /usr/bin/pleroma-blocking ]; then
/usr/bin/pleroma-blocking
fi
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment