chmod if possible
This commit is contained in:
parent
5481c1fb42
commit
5f41af2f74
|
@ -38,7 +38,9 @@ function save_firewall_settings {
|
||||||
printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables
|
printf '#!/bin/sh\n' > /etc/network/if-up.d/iptables
|
||||||
printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables
|
printf 'iptables-restore < /etc/firewall.conf\n' >> /etc/network/if-up.d/iptables
|
||||||
printf 'ip6tables-restore < /etc/firewall6.conf\n' >> /etc/network/if-up.d/iptables
|
printf 'ip6tables-restore < /etc/firewall6.conf\n' >> /etc/network/if-up.d/iptables
|
||||||
chmod +x /etc/network/if-up.d/iptables
|
if [ -f /etc/network/if-up.d/iptables ]; then
|
||||||
|
chmod +x /etc/network/if-up.d/iptables
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function global_rate_limit {
|
function global_rate_limit {
|
||||||
|
|
Loading…
Reference in New Issue