File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ echo -en "\n-------------------------------------"
3131echo -en " -------------------------------------\n\n"
3232
3333# Displaying network interfaces
34- ifconfig
34+ ip addr list
3535
3636# ----------------------------------------------------------#
3737# Hestia #
Original file line number Diff line number Diff line change 9999
100100# Adding system IP
101101for ip in $ips ; do
102- check_ifconfig =$( /sbin/ifconfig | grep " $ip " )
103- if [ ! -e " $HESTIA /data/ips/$ip " ] && [ ! -z " $check_ifconfig " ]; then
102+ check_ip =$( /sbin/ip addr list | grep " $ip " )
103+ if [ ! -e " $HESTIA /data/ips/$ip " ] && [ ! -z " $check_ip " ]; then
104104 interface=$( /sbin/ip addr | grep $ip | awk ' {print $NF}' | uniq)
105105 interface=$( echo " $interface " | cut -f 1 -d : | head -n 1)
106106 netmask=$( /sbin/ip addr | grep $ip | cut -f 2 -d / | cut -f 1 -d \ )
You can’t perform that action at this time.
0 commit comments