update_firewall-script_ipt-gateway.sh: don't restart firewall on read-only systems.
This commit is contained in:
parent
29cc5150b7
commit
f710e4966d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user