Query ufw package to speed up firewall rule creation

This commit is contained in:
2020-04-29 13:53:06 -04:00
parent d3ef805699
commit 0a3a70386a

View File

@@ -975,7 +975,7 @@ EOF"
fi fi
elif [[ "$ID" =~ ^(ubuntu|debian)$ ]]; then elif [[ "$ID" =~ ^(ubuntu|debian)$ ]]; then
# Debian ufw package state is broken on fresh installations # Debian ufw package state is broken on fresh installations
[[ ! -x $(command -v ufw) ]] && _installPackage --noquery ufw [[ ! -x $(command -v ufw) ]] && _installPackage 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]