vesta/upd/add_firewall.sh
2014-10-09 16:40:23 +03:00

18 lines
428 B
Bash
Executable File

#!/bin/bash
source /etc/profile.d/vesta.sh
if [ ! -e "$VESTA/data/firewall" ]; then
mkdir -p $VESTA/data/firewall
chmod 770 $VESTA/data/firewall
cp $VESTA/install/rhel/firewall/* \
$VESTA/data/firewall/
chmod 660 $VESTA/data/firewall/*
source $VESTA/conf/vesta.conf
if [ -z "$FIREWALL_SYSTEM" ]; then
echo "FIREWALL_SYSTEM='iptables'" \
>> $VESTA/conf/vesta.conf
fi
fi