From 3170e14759d59bcf59459b46d8f41582e022fd8c Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Tue, 17 Feb 2015 13:38:37 -0700 Subject: [PATCH] service manager not gets IP addy from hostname rather than ifconfig Former-commit-id: 8fdd97e7b48eb00aa396b37c5f96fb7555d82cbe --- rpms/awips2.upc/Installer.edex-upc/edex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpms/awips2.upc/Installer.edex-upc/edex b/rpms/awips2.upc/Installer.edex-upc/edex index 211e1dd4d8..c6a059c8ea 100755 --- a/rpms/awips2.upc/Installer.edex-upc/edex +++ b/rpms/awips2.upc/Installer.edex-upc/edex @@ -50,7 +50,8 @@ nopts=${options[@]} # OS X #IP=`ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}'` # Linux -IP=`/sbin/ifconfig | grep "inet addr" | grep -v 127.0.0 | awk '{ print $2 }' | cut -d: -f2` +#IP=`/sbin/ifconfig | grep "inet addr" | grep -v 127.0.0 | awk '{ print $2 }' | cut -d: -f2` +IP=`hostname -I` # truncate IP_CIDR="${IP%.*}"