Serghey Rodin 12 лет назад
Родитель
Сommit
f7cc1b9b62
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      bin/v-update-sys-ip

+ 2 - 1
bin/v-update-sys-ip

@@ -16,6 +16,7 @@ user=${1-admin}
 ip_status=${2-shared}
 ip_status=${2-shared}
 
 
 # Includes
 # Includes
+source /etc/profile.d/vesta.sh
 source $VESTA/func/main.sh
 source $VESTA/func/main.sh
 source $VESTA/conf/vesta.conf
 source $VESTA/conf/vesta.conf
 
 
@@ -35,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user"
 
 
 # Get list of ip addresses
 # Get list of ip addresses
 ip_list=$(/sbin/ifconfig | grep 'inet addr:' | cut -f 2 -d : | \
 ip_list=$(/sbin/ifconfig | grep 'inet addr:' | cut -f 2 -d : | \
-    cut -f 1 -d ' '| grep -v 127.0.0.1)
+    cut -f 1 -d ' '| grep -v 127.0.0.1 | grep -v '0.0.0.')
 ip_num=$(echo "$ip_list" | wc -l)
 ip_num=$(echo "$ip_list" | wc -l)
 
 
 # WorkAround for Amazon stop/start issue
 # WorkAround for Amazon stop/start issue