File tree Expand file tree Collapse file tree 3 files changed +32
-32
lines changed
Expand file tree Collapse file tree 3 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -495,16 +495,6 @@ if [ "$srv_type" = 'micro' ]; then
495495 rm -f /usr/local/vesta/data/templates/web/apache2/phpfcgid.*
496496fi
497497
498- # Firewall configuartion
499- wget $CHOST /$VERSION /firewall.tar.gz -O firewall.tar.gz
500- tar -xzf firewall.tar.gz
501- rm -f firewall.tar.gz
502- if [ " $disable_iptables " = ' yes' ]; then
503- sed -i " s/iptables//" $VESTA /conf/vesta.conf
504- else
505- /usr/local/vesta/bin/v-update-firewall
506- fi
507-
508498# Generating SSL certificate
509499$VESTA /bin/v-generate-ssl-cert $( hostname) $email ' US' ' California' \
510500 ' San Francisco' ' Vesta Control Panel' ' IT' > /tmp/vst.pem
@@ -797,6 +787,16 @@ $VESTA/bin/v-add-database admin default default $(gen_pass) mysql
797787# Configuring system ips
798788$VESTA /bin/v-update-sys-ip
799789
790+ # Firewall configuartion
791+ wget $CHOST /$VERSION /firewall.tar.gz -O firewall.tar.gz
792+ tar -xzf firewall.tar.gz
793+ rm -f firewall.tar.gz
794+ if [ " $disable_iptables " = ' yes' ]; then
795+ sed -i " s/iptables//" $VESTA /conf/vesta.conf
796+ else
797+ /usr/local/vesta/bin/v-update-firewall
798+ fi
799+
800800# Get main ip
801801main_ip=$( ifconfig | grep ' inet addr:' | grep -v 127.0.0.1 | head -n1 | \
802802 cut -f2 -d: | cut -f1 -d ' ' )
Original file line number Diff line number Diff line change @@ -554,18 +554,6 @@ if [ "$srv_type" = 'micro' ]; then
554554 rm -f /usr/local/vesta/data/templates/web/httpd/phpfcgid.*
555555fi
556556
557- # Firewall configuration
558- wget $CHOST /$VERSION /firewall.tar.gz -O firewall.tar.gz
559- tar -xzf firewall.tar.gz
560- rm -f firewall.tar.gz
561- if [ " $disable_iptables " = ' yes' ]; then
562- sed -i " s/iptables//" $VESTA /conf/vesta.conf
563- chkconfig iptables off
564- service iptables stop
565- else
566- /usr/local/vesta/bin/v-update-firewall
567- fi
568-
569557# Generating SSL certificate
570558$VESTA /bin/v-generate-ssl-cert $( hostname) $email ' US' ' California' \
571559 ' San Francisco' ' Vesta Control Panel' ' IT' > /tmp/vst.pem
@@ -849,6 +837,18 @@ $VESTA/bin/v-add-database admin default default $(gen_pass) mysql
849837# Configuring system ips
850838$VESTA /bin/v-update-sys-ip
851839
840+ # Firewall configuration
841+ wget $CHOST /$VERSION /firewall.tar.gz -O firewall.tar.gz
842+ tar -xzf firewall.tar.gz
843+ rm -f firewall.tar.gz
844+ if [ " $disable_iptables " = ' yes' ]; then
845+ sed -i " s/iptables//" $VESTA /conf/vesta.conf
846+ chkconfig iptables off
847+ service iptables stop
848+ else
849+ /usr/local/vesta/bin/v-update-firewall
850+ fi
851+
852852# Get main ip
853853main_ip=$( ifconfig | grep ' inet addr:' | grep -v 127.0.0.1 | head -n1 | \
854854 cut -f2 -d: | cut -f1 -d ' ' )
Original file line number Diff line number Diff line change @@ -501,16 +501,6 @@ if [ "$codename" = 'trusty' ]; then
501501 rm -f /usr/local/vesta/data/templates/web/apache2/phpcgi.*
502502fi
503503
504- # Firewall configuartion
505- wget $CHOST /$VERSION /firewall.tar.gz -O firewall.tar.gz
506- tar -xzf firewall.tar.gz
507- rm -f firewall.tar.gz
508- if [ " $disable_iptables " = ' yes' ]; then
509- sed -i " s/iptables//" $VESTA /conf/vesta.conf
510- else
511- /usr/local/vesta/bin/v-update-firewall
512- fi
513-
514504# Generating SSL certificate
515505$VESTA /bin/v-generate-ssl-cert $( hostname) $email ' US' ' California' \
516506 ' San Francisco' ' Vesta Control Panel' ' IT' > /tmp/vst.pem
@@ -819,6 +809,16 @@ $VESTA/bin/v-add-database admin default default $(gen_pass) mysql
819809# Configuring system ips
820810$VESTA /bin/v-update-sys-ip
821811
812+ # Firewall configuartion
813+ wget $CHOST /$VERSION /firewall.tar.gz -O firewall.tar.gz
814+ tar -xzf firewall.tar.gz
815+ rm -f firewall.tar.gz
816+ if [ " $disable_iptables " = ' yes' ]; then
817+ sed -i " s/iptables//" $VESTA /conf/vesta.conf
818+ else
819+ /usr/local/vesta/bin/v-update-firewall
820+ fi
821+
822822# Get main ip
823823main_ip=$( ifconfig | grep ' inet addr:' | grep -v 127.0.0.1 | head -n1 | \
824824 cut -f2 -d: | cut -f1 -d ' ' )
You can’t perform that action at this time.
0 commit comments