Skip to content

Commit f437f70

Browse files
committed
fix for openvz ip list
1 parent ba3cc72 commit f437f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-update-sys-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user"
3636
#----------------------------------------------------------#
3737

3838
# Get list of ip addresses
39-
ip_list=$(/sbin/ip addr |grep "inet "|grep -v "host lo" |awk '{print $2}')
39+
ip_list=$(/sbin/ip addr|grep 'inet '|grep global|awk '{print $2}')
4040
ip_list=$(echo "$ip_list"|cut -f 1 -d /)
4141
ip_num=$(echo "$ip_list" | wc -l)
4242

0 commit comments

Comments
 (0)