aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.d/21-firewall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.d/21-firewall.sh')
-rw-r--r--bootstrap.d/21-firewall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap.d/21-firewall.sh b/bootstrap.d/21-firewall.sh
index 89cf37f..e006e2b 100644
--- a/bootstrap.d/21-firewall.sh
+++ b/bootstrap.d/21-firewall.sh
@@ -37,8 +37,8 @@ if [ "$ENABLE_IPTABLES" = true ] ; then
fi
fi
-# Remove SSHD related iptables rules
if [ "$ENABLE_SSHD" = false ] ; then
- sed -e '/^#/! {/SSH/ s/^/# /}' -i $R/etc/iptables/iptables.rules 2> /dev/null
- sed -e '/^#/! {/SSH/ s/^/# /}' -i $R/etc/iptables/ip6tables.rules 2> /dev/null
+ # Remove SSHD related iptables rules
+ sed -i "/^#/! {/SSH/ s/^/# /}" $R/etc/iptables/iptables.rules 2> /dev/null
+ sed -i "/^#/! {/SSH/ s/^/# /}" $R/etc/iptables/ip6tables.rules 2> /dev/null
fi