mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
fix for ips on DigitalOcean
This commit is contained in:
parent
9ab813feee
commit
0067562b33
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ fi
|
||||||
# Compare ips
|
# Compare ips
|
||||||
for ip in $ip_list; do
|
for ip in $ip_list; do
|
||||||
check_ifconfig=$(/sbin/ifconfig |grep "$ip")
|
check_ifconfig=$(/sbin/ifconfig |grep "$ip")
|
||||||
if [ ! -e "$VESTA/data/ips/$ip" ] && [ ! -z "$check_ifconfig)" ]; then
|
if [ ! -e "$VESTA/data/ips/$ip" ] && [ ! -z "$check_ifconfig" ]; then
|
||||||
interface=$(/sbin/ip addr |grep $ip |awk '{print $NF}')
|
interface=$(/sbin/ip addr |grep $ip |awk '{print $NF}')
|
||||||
interface=$(echo $interface |cut -f 1 -d :)
|
interface=$(echo $interface |cut -f 1 -d :)
|
||||||
netmask=$(/sbin/ip addr |grep $ip |cut -f 2 -d / |cut -f 1 -d \ )
|
netmask=$(/sbin/ip addr |grep $ip |cut -f 2 -d / |cut -f 1 -d \ )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue