Skip to content

Commit f7cc1b9

Browse files
committed
fix for rc.local startup
1 parent 2c634e9 commit f7cc1b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-update-sys-ip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ user=${1-admin}
1616
ip_status=${2-shared}
1717

1818
# Includes
19+
source /etc/profile.d/vesta.sh
1920
source $VESTA/func/main.sh
2021
source $VESTA/conf/vesta.conf
2122

@@ -35,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user"
3536

3637
# Get list of ip addresses
3738
ip_list=$(/sbin/ifconfig | grep 'inet addr:' | cut -f 2 -d : | \
38-
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.')
3940
ip_num=$(echo "$ip_list" | wc -l)
4041

4142
# WorkAround for Amazon stop/start issue

0 commit comments

Comments
 (0)