File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1226,18 +1226,18 @@ $VESTA/bin/v-update-sys-ip
12261226# Get main ip
12271227ip=$( ip addr| grep ' inet ' | grep global| head -n1| awk ' {print $2}' | cut -f1 -d/)
12281228
1229+ # Firewall configuration
1230+ if [ " $iptables " = ' yes' ]; then
1231+ $VESTA /bin/v-update-firewall
1232+ fi
1233+
12291234# Get public ip
12301235pub_ip=$( curl -s vestacp.com/what-is-my-ip/)
12311236if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
12321237 $VESTA /bin/v-change-sys-ip-nat $ip $pub_ip
12331238 ip=$pub_ip
12341239fi
12351240
1236- # Firewall configuration
1237- if [ " $iptables " = ' yes' ]; then
1238- $VESTA /bin/v-update-firewall
1239- fi
1240-
12411241# Configuring mysql host
12421242if [ " $mysql " = ' yes' ]; then
12431243 $VESTA /bin/v-add-database-host mysql localhost root $vpass
You can’t perform that action at this time.
0 commit comments