diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index 252ebeb5..d8cd52a1 100755 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -1226,6 +1226,11 @@ $VESTA/bin/v-update-sys-ip # Get main ip ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/) +# Firewall configuration +if [ "$iptables" = 'yes' ]; then + $VESTA/bin/v-update-firewall +fi + # Get public ip pub_ip=$(curl -s vestacp.com/what-is-my-ip/) if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then @@ -1233,11 +1238,6 @@ if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then ip=$pub_ip fi -# Firewall configuration -if [ "$iptables" = 'yes' ]; then - $VESTA/bin/v-update-firewall -fi - # Configuring mysql host if [ "$mysql" = 'yes' ]; then $VESTA/bin/v-add-database-host mysql localhost root $vpass