Compare commits
1 Commits
1439b5b095
...
d32019077a
| Author | SHA1 | Date | |
|---|---|---|---|
| d32019077a |
@@ -952,7 +952,8 @@ EOF"
|
|||||||
_firewall_cmd --reload > /dev/null 2>&1
|
_firewall_cmd --reload > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
elif [[ "$ID" =~ ^(ubuntu|debian)$ ]]; then
|
elif [[ "$ID" =~ ^(ubuntu|debian)$ ]]; then
|
||||||
[[ ! -x $(command -v ufw) ]] && _installPackage ufw
|
# Debian ufw package state is broken on fresh installations
|
||||||
|
[[ ! -x $(command -v ufw) ]] && _installPackage --noquery ufw
|
||||||
if [[ ! -f "/etc/ufw/applications.d/$1.service" ]]; then
|
if [[ ! -f "/etc/ufw/applications.d/$1.service" ]]; then
|
||||||
_bash_cmd "cat <<-EOF > /etc/ufw/applications.d/$1.service
|
_bash_cmd "cat <<-EOF > /etc/ufw/applications.d/$1.service
|
||||||
[$1]
|
[$1]
|
||||||
|
|||||||
Reference in New Issue
Block a user