mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
fix for openvz ip list
This commit is contained in:
parent
ba3cc72281
commit
f437f70e69
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user"
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Get list of ip addresses
|
# Get list of ip addresses
|
||||||
ip_list=$(/sbin/ip addr |grep "inet "|grep -v "host lo" |awk '{print $2}')
|
ip_list=$(/sbin/ip addr|grep 'inet '|grep global|awk '{print $2}')
|
||||||
ip_list=$(echo "$ip_list"|cut -f 1 -d /)
|
ip_list=$(echo "$ip_list"|cut -f 1 -d /)
|
||||||
ip_num=$(echo "$ip_list" | wc -l)
|
ip_num=$(echo "$ip_list" | wc -l)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue