Run pleroma blocking script after firewall entry
This commit is contained in:
parent
ab2cba8075
commit
1702ba5a4a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue