mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Update v-update-firewall - skip CentOS block
This commit is contained in:
parent
9fdfe2760a
commit
0e881c911b
1 changed files with 7 additions and 7 deletions
|
@ -164,12 +164,12 @@ if [ ! -z "$FIREWALL_EXTENSION" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Saving rules to the master iptables file
|
# Saving rules to the master iptables file
|
||||||
if [ -d "/etc/sysconfig" ]; then
|
# if [ -d "/etc/sysconfig" ]; then
|
||||||
/sbin/iptables-save > /etc/sysconfig/iptables
|
# /sbin/iptables-save > /etc/sysconfig/iptables
|
||||||
if [ -z "$(ls /etc/rc3.d/S*iptables 2>/dev/null)" ]; then
|
# if [ -z "$(ls /etc/rc3.d/S*iptables 2>/dev/null)" ]; then
|
||||||
/sbin/chkconfig iptables on
|
# /sbin/chkconfig iptables on
|
||||||
fi
|
# fi
|
||||||
else
|
# else
|
||||||
/sbin/iptables-save > /etc/iptables.rules
|
/sbin/iptables-save > /etc/iptables.rules
|
||||||
preup="/etc/network/if-pre-up.d/iptables"
|
preup="/etc/network/if-pre-up.d/iptables"
|
||||||
if [ ! -e "$preup" ]; then
|
if [ ! -e "$preup" ]; then
|
||||||
|
@ -178,7 +178,7 @@ else
|
||||||
echo "exit 0" >> $preup
|
echo "exit 0" >> $preup
|
||||||
chmod +x $preup
|
chmod +x $preup
|
||||||
fi
|
fi
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# Worarkound for OpenVZ
|
# Worarkound for OpenVZ
|
||||||
if [ -e "/proc/vz/veinfo" ]; then
|
if [ -e "/proc/vz/veinfo" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue