Преглед на файлове

fix for missing ip in install header

Serghey Rodin преди 9 години
родител
ревизия
047be8108c
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      install/vst-install-debian.sh
  2. 1 1
      install/vst-install-rhel.sh
  3. 1 1
      install/vst-install-ubuntu.sh

+ 1 - 1
install/vst-install-debian.sh

@@ -1132,7 +1132,7 @@ $VESTA/bin/v-update-sys-ip
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
 
 
 # Get public ip
 # Get public ip
-pub_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
+pub_ip=$(curl vestacp.com/what-is-my-ip/)
 if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
 if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
     $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
     $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
 fi
 fi

+ 1 - 1
install/vst-install-rhel.sh

@@ -1202,7 +1202,7 @@ $VESTA/bin/v-update-sys-ip
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
 
 
 # Get public ip
 # Get public ip
-pub_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
+pub_ip=$(curl vestacp.com/what-is-my-ip/)
 if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
 if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
     $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
     $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
 fi
 fi

+ 1 - 1
install/vst-install-ubuntu.sh

@@ -1121,7 +1121,7 @@ $VESTA/bin/v-update-sys-ip
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
 ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
 
 
 # Get public ip
 # Get public ip
-pub_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
+pub_ip=$(curl vestacp.com/what-is-my-ip/)
 if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
 if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
     $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
     $VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
 fi
 fi