Skip to content

Commit 047be81

Browse files
committed
fix for missing ip in install header
1 parent b9c29b2 commit 047be81

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

install/vst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ $VESTA/bin/v-update-sys-ip
11321132
ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
11331133

11341134
# Get public ip
1135-
pub_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
1135+
pub_ip=$(curl vestacp.com/what-is-my-ip/)
11361136
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
11371137
$VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
11381138
fi

install/vst-install-rhel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ $VESTA/bin/v-update-sys-ip
12021202
ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
12031203

12041204
# Get public ip
1205-
pub_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
1205+
pub_ip=$(curl vestacp.com/what-is-my-ip/)
12061206
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
12071207
$VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
12081208
fi

install/vst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ $VESTA/bin/v-update-sys-ip
11211121
ip=$(ip addr|grep 'inet '|grep global|head -n1|awk '{print $2}'|cut -f1 -d/)
11221122

11231123
# Get public ip
1124-
pub_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
1124+
pub_ip=$(curl vestacp.com/what-is-my-ip/)
11251125
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
11261126
$VESTA/bin/v-change-sys-ip-nat $ip $pub_ip
11271127
fi

0 commit comments

Comments
 (0)