We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 862e262 commit 6a955cdCopy full SHA for 6a955cd
1 file changed
install/vst-install-ubuntu.sh
@@ -1125,18 +1125,18 @@ $VESTA/bin/v-update-sys-ip
1125
# Get main ip
1126
ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
1127
1128
+# Firewall configuration
1129
+if [ "$iptables" = 'yes' ]; then
1130
+ $VESTA/bin/v-update-firewall
1131
+fi
1132
+
1133
# Get public ip
1134
pub_ip=$(curl -s vestacp.com/what-is-my-ip/)
1135
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
1136
$VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
1137
ip=$pub_ip
1138
fi
1139
-# Firewall configuration
-if [ "$iptables" = 'yes' ]; then
- $VESTA/bin/v-update-firewall
-fi
-
1140
# Configuring mysql host
1141
if [ "$mysql" = 'yes' ]; then
1142
$VESTA/bin/v-add-database-host mysql localhost root $vpass
0 commit comments