We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ab813f commit 0067562Copy full SHA for 0067562
1 file changed
bin/v-update-sys-ip
@@ -98,7 +98,7 @@ fi
98
# Compare ips
99
for ip in $ip_list; do
100
check_ifconfig=$(/sbin/ifconfig |grep "$ip")
101
- if [ ! -e "$VESTA/data/ips/$ip" ] && [ ! -z "$check_ifconfig)" ]; then
+ if [ ! -e "$VESTA/data/ips/$ip" ] && [ ! -z "$check_ifconfig" ]; then
102
interface=$(/sbin/ip addr |grep $ip |awk '{print $NF}')
103
interface=$(echo $interface |cut -f 1 -d :)
104
netmask=$(/sbin/ip addr |grep $ip |cut -f 2 -d / |cut -f 1 -d \ )
0 commit comments