We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be837cb commit 862e262Copy full SHA for 862e262
1 file changed
install/vst-install-rhel.sh
@@ -1226,18 +1226,18 @@ $VESTA/bin/v-update-sys-ip
1226
# Get main ip
1227
ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
1228
1229
+# Firewall configuration
1230
+if [ "$iptables" = 'yes' ]; then
1231
+ $VESTA/bin/v-update-firewall
1232
+fi
1233
+
1234
# Get public ip
1235
pub_ip=$(curl -s vestacp.com/what-is-my-ip/)
1236
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
1237
$VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
1238
ip=$pub_ip
1239
fi
1240
-# Firewall configuration
-if [ "$iptables" = 'yes' ]; then
- $VESTA/bin/v-update-firewall
-fi
-
1241
# Configuring mysql host
1242
if [ "$mysql" = 'yes' ]; then
1243
$VESTA/bin/v-add-database-host mysql localhost root $vpass
0 commit comments