mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
firewall trigger
This commit is contained in:
parent
e498d8786c
commit
27dabfb7a4
7 changed files with 50 additions and 0 deletions
17
upd/add_firewall.sh
Executable file
17
upd/add_firewall.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue