Adding Ubuntu Bionic IP lookup to installer script

This commit is contained in:
Zachary Klosko 2021-01-03 13:43:53 -05:00
parent 5e07555030
commit 2ac9e33ce7

View file

@ -1210,6 +1210,7 @@ else
# not on centos
ip_device="eth0"
$is_ubuntu_xenial && ip_device="enp0s8"
$is_ubuntu_bionic && ip_device="enp0s2"
IP=$(ifconfig ${ip_device} 2>/dev/null |awk -F'[ :]+' '/inet addr:/ {print $4}')
fi
verbose "...Done"