mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Fix for firewall setup
This commit is contained in:
parent
832575b325
commit
5904999d2b
3 changed files with 32 additions and 32 deletions
|
@ -495,16 +495,6 @@ if [ "$srv_type" = 'micro' ]; then
|
||||||
rm -f /usr/local/vesta/data/templates/web/apache2/phpfcgid.*
|
rm -f /usr/local/vesta/data/templates/web/apache2/phpfcgid.*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Firewall configuartion
|
|
||||||
wget $CHOST/$VERSION/firewall.tar.gz -O firewall.tar.gz
|
|
||||||
tar -xzf firewall.tar.gz
|
|
||||||
rm -f firewall.tar.gz
|
|
||||||
if [ "$disable_iptables" = 'yes' ]; then
|
|
||||||
sed -i "s/iptables//" $VESTA/conf/vesta.conf
|
|
||||||
else
|
|
||||||
/usr/local/vesta/bin/v-update-firewall
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Generating SSL certificate
|
# Generating SSL certificate
|
||||||
$VESTA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
|
$VESTA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
|
||||||
'San Francisco' 'Vesta Control Panel' 'IT' > /tmp/vst.pem
|
'San Francisco' 'Vesta Control Panel' 'IT' > /tmp/vst.pem
|
||||||
|
@ -797,6 +787,16 @@ $VESTA/bin/v-add-database admin default default $(gen_pass) mysql
|
||||||
# Configuring system ips
|
# Configuring system ips
|
||||||
$VESTA/bin/v-update-sys-ip
|
$VESTA/bin/v-update-sys-ip
|
||||||
|
|
||||||
|
# Firewall configuartion
|
||||||
|
wget $CHOST/$VERSION/firewall.tar.gz -O firewall.tar.gz
|
||||||
|
tar -xzf firewall.tar.gz
|
||||||
|
rm -f firewall.tar.gz
|
||||||
|
if [ "$disable_iptables" = 'yes' ]; then
|
||||||
|
sed -i "s/iptables//" $VESTA/conf/vesta.conf
|
||||||
|
else
|
||||||
|
/usr/local/vesta/bin/v-update-firewall
|
||||||
|
fi
|
||||||
|
|
||||||
# Get main ip
|
# Get main ip
|
||||||
main_ip=$(ifconfig |grep 'inet addr:' |grep -v 127.0.0.1 |head -n1 | \
|
main_ip=$(ifconfig |grep 'inet addr:' |grep -v 127.0.0.1 |head -n1 | \
|
||||||
cut -f2 -d: | cut -f1 -d ' ')
|
cut -f2 -d: | cut -f1 -d ' ')
|
||||||
|
|
|
@ -554,18 +554,6 @@ if [ "$srv_type" = 'micro' ]; then
|
||||||
rm -f /usr/local/vesta/data/templates/web/httpd/phpfcgid.*
|
rm -f /usr/local/vesta/data/templates/web/httpd/phpfcgid.*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Firewall configuration
|
|
||||||
wget $CHOST/$VERSION/firewall.tar.gz -O firewall.tar.gz
|
|
||||||
tar -xzf firewall.tar.gz
|
|
||||||
rm -f firewall.tar.gz
|
|
||||||
if [ "$disable_iptables" = 'yes' ]; then
|
|
||||||
sed -i "s/iptables//" $VESTA/conf/vesta.conf
|
|
||||||
chkconfig iptables off
|
|
||||||
service iptables stop
|
|
||||||
else
|
|
||||||
/usr/local/vesta/bin/v-update-firewall
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Generating SSL certificate
|
# Generating SSL certificate
|
||||||
$VESTA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
|
$VESTA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
|
||||||
'San Francisco' 'Vesta Control Panel' 'IT' > /tmp/vst.pem
|
'San Francisco' 'Vesta Control Panel' 'IT' > /tmp/vst.pem
|
||||||
|
@ -849,6 +837,18 @@ $VESTA/bin/v-add-database admin default default $(gen_pass) mysql
|
||||||
# Configuring system ips
|
# Configuring system ips
|
||||||
$VESTA/bin/v-update-sys-ip
|
$VESTA/bin/v-update-sys-ip
|
||||||
|
|
||||||
|
# Firewall configuration
|
||||||
|
wget $CHOST/$VERSION/firewall.tar.gz -O firewall.tar.gz
|
||||||
|
tar -xzf firewall.tar.gz
|
||||||
|
rm -f firewall.tar.gz
|
||||||
|
if [ "$disable_iptables" = 'yes' ]; then
|
||||||
|
sed -i "s/iptables//" $VESTA/conf/vesta.conf
|
||||||
|
chkconfig iptables off
|
||||||
|
service iptables stop
|
||||||
|
else
|
||||||
|
/usr/local/vesta/bin/v-update-firewall
|
||||||
|
fi
|
||||||
|
|
||||||
# Get main ip
|
# Get main ip
|
||||||
main_ip=$(ifconfig |grep 'inet addr:' |grep -v 127.0.0.1 |head -n1 | \
|
main_ip=$(ifconfig |grep 'inet addr:' |grep -v 127.0.0.1 |head -n1 | \
|
||||||
cut -f2 -d: | cut -f1 -d ' ')
|
cut -f2 -d: | cut -f1 -d ' ')
|
||||||
|
|
|
@ -501,16 +501,6 @@ if [ "$codename" = 'trusty' ]; then
|
||||||
rm -f /usr/local/vesta/data/templates/web/apache2/phpcgi.*
|
rm -f /usr/local/vesta/data/templates/web/apache2/phpcgi.*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Firewall configuartion
|
|
||||||
wget $CHOST/$VERSION/firewall.tar.gz -O firewall.tar.gz
|
|
||||||
tar -xzf firewall.tar.gz
|
|
||||||
rm -f firewall.tar.gz
|
|
||||||
if [ "$disable_iptables" = 'yes' ]; then
|
|
||||||
sed -i "s/iptables//" $VESTA/conf/vesta.conf
|
|
||||||
else
|
|
||||||
/usr/local/vesta/bin/v-update-firewall
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Generating SSL certificate
|
# Generating SSL certificate
|
||||||
$VESTA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
|
$VESTA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
|
||||||
'San Francisco' 'Vesta Control Panel' 'IT' > /tmp/vst.pem
|
'San Francisco' 'Vesta Control Panel' 'IT' > /tmp/vst.pem
|
||||||
|
@ -819,6 +809,16 @@ $VESTA/bin/v-add-database admin default default $(gen_pass) mysql
|
||||||
# Configuring system ips
|
# Configuring system ips
|
||||||
$VESTA/bin/v-update-sys-ip
|
$VESTA/bin/v-update-sys-ip
|
||||||
|
|
||||||
|
# Firewall configuartion
|
||||||
|
wget $CHOST/$VERSION/firewall.tar.gz -O firewall.tar.gz
|
||||||
|
tar -xzf firewall.tar.gz
|
||||||
|
rm -f firewall.tar.gz
|
||||||
|
if [ "$disable_iptables" = 'yes' ]; then
|
||||||
|
sed -i "s/iptables//" $VESTA/conf/vesta.conf
|
||||||
|
else
|
||||||
|
/usr/local/vesta/bin/v-update-firewall
|
||||||
|
fi
|
||||||
|
|
||||||
# Get main ip
|
# Get main ip
|
||||||
main_ip=$(ifconfig |grep 'inet addr:' |grep -v 127.0.0.1 |head -n1 | \
|
main_ip=$(ifconfig |grep 'inet addr:' |grep -v 127.0.0.1 |head -n1 | \
|
||||||
cut -f2 -d: | cut -f1 -d ' ')
|
cut -f2 -d: | cut -f1 -d ' ')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue