X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=installers%2Ffull_install_osm.sh;h=f2f24eb614108405c7f6d63ac207b1fc3399c6c1;hb=refs%2Fchanges%2F45%2F6245%2F3;hp=3e675e166ccd73a55ee9ebf2920f9a708f4289ec;hpb=7a5344c988e3a9c11a2db896fd080659e16d3f59;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 3e675e16..f2f24eb6 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -724,7 +724,9 @@ function install_lightweight() { LWTEMPDIR="$(mktemp -d -q --tmpdir "installosmlight.XXXXXX")" trap 'rm -rf "${LWTEMPDIR}"' EXIT DEFAULT_IF=`route -n |awk '$1~/^0.0.0.0/ {print $8}'` + [ -z "$DEFAULT_IF" ] && FATAL "Not possible to determine the interface with the default route 0.0.0.0" DEFAULT_IP=`ip -o -4 a |grep ${DEFAULT_IF}|awk '{split($4,a,"/"); print a[1]}'` + [ -z "$DEFAULT_IP" ] && FATAL "Not possible to determine the IP address of the interface with the default route" DEFAULT_MTU=$(ip addr show ${DEFAULT_IF} | perl -ne 'if (/mtu\s(\d+)/) {print $1;}') if [ -z "$INSTALL_NOLXD" ]; then need_packages_lw="lxd"