update_firewall-script_ipt-gateway.sh: don't restart firewall on read-only systems.

This commit is contained in:
Christoph 2019-06-20 14:23:54 +02:00
parent 29cc5150b7
commit f710e4966d

View File

@ -329,6 +329,14 @@ done
blank_line
if [[ -d "/ro" ]] && [[ -d "/rw" ]] ; then
restart_ipv4_firewall=false
restart_ipv6_firewall=false
info "Restarting firewall is ommited - Read only system."
fi
echononl "Restart IPv4 Firewall.."
if $restart_ipv4_firewall ; then
/usr/local/sbin/$IPV4_FIREWALL_SCRIPT > /dev/null 2> "$log_file"