Adding Ubuntu Bionic IP lookup to installer script
This commit is contained in:
parent
5e07555030
commit
2ac9e33ce7
1 changed files with 1 additions and 0 deletions
1
install
1
install
|
@ -1210,6 +1210,7 @@ else
|
||||||
# not on centos
|
# not on centos
|
||||||
ip_device="eth0"
|
ip_device="eth0"
|
||||||
$is_ubuntu_xenial && ip_device="enp0s8"
|
$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}')
|
IP=$(ifconfig ${ip_device} 2>/dev/null |awk -F'[ :]+' '/inet addr:/ {print $4}')
|
||||||
fi
|
fi
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue