We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba5bdb1 commit 945551dCopy full SHA for 945551d
bin/v-update-sys-ip
@@ -97,7 +97,8 @@ fi
97
98
# Compare ips
99
for ip in $ip_list; do
100
- if [ ! -e "$VESTA/data/ips/$ip" ]; then
+ check_ifconfig=$(/sbin/ifconfig |grep "$ip")
101
+ 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