From 5c98639825978e5fbff8da346a8cc6aebc7e2e6b Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 30 Jun 2016 23:10:03 +0300 Subject: [PATCH] fix missing pub_ip during install --- install/vst-install-debian.sh | 6 ++---- install/vst-install-rhel.sh | 6 ++---- install/vst-install-ubuntu.sh | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index e5e6af5f..5dfb084f 100755 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -1132,12 +1132,10 @@ $VESTA/bin/v-update-sys-ip ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/) # Get public ip -pub_ip=$(curl vestacp.com/what-is-my-ip/) +pub_ip=$(curl -s vestacp.com/what-is-my-ip/) if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip -fi -if [ -z "$pub_ip" ]; then - ip=$main_ip + ip=$pub_ip fi # Firewall configuration diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index 090c20c9..37616e60 100755 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -1202,12 +1202,10 @@ $VESTA/bin/v-update-sys-ip ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/) # Get public ip -pub_ip=$(curl vestacp.com/what-is-my-ip/) +pub_ip=$(curl -s vestacp.com/what-is-my-ip/) if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip -fi -if [ -z "$pub_ip" ]; then - ip=$main_ip + ip=$pub_ip fi # Firewall configuration diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index c50a4a43..d71a4edc 100755 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -1121,12 +1121,10 @@ $VESTA/bin/v-update-sys-ip ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/) # Get public ip -pub_ip=$(curl vestacp.com/what-is-my-ip/) +pub_ip=$(curl -s vestacp.com/what-is-my-ip/) if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip -fi -if [ -z "$pub_ip" ]; then - ip=$main_ip + ip=$pub_ip fi # Firewall configuration