We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c634e9 commit f7cc1b9Copy full SHA for f7cc1b9
bin/v-update-sys-ip
@@ -16,6 +16,7 @@ user=${1-admin}
16
ip_status=${2-shared}
17
18
# Includes
19
+source /etc/profile.d/vesta.sh
20
source $VESTA/func/main.sh
21
source $VESTA/conf/vesta.conf
22
@@ -35,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user"
35
36
37
# Get list of ip addresses
38
ip_list=$(/sbin/ifconfig | grep 'inet addr:' | cut -f 2 -d : | \
- cut -f 1 -d ' '| grep -v 127.0.0.1)
39
+ cut -f 1 -d ' '| grep -v 127.0.0.1 | grep -v '0.0.0.')
40
ip_num=$(echo "$ip_list" | wc -l)
41
42
# WorkAround for Amazon stop/start issue
0 commit comments