[Swift-commit] r7653 - branches/release-0.94/bin
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Fri Mar 7 21:02:30 CST 2014
Author: ketan
Date: 2014-03-07 21:02:30 -0600 (Fri, 07 Mar 2014)
New Revision: 7653
Modified:
branches/release-0.94/bin/start-coaster-service
Log:
use curl to find ip if all else fails
Modified: branches/release-0.94/bin/start-coaster-service
===================================================================
--- branches/release-0.94/bin/start-coaster-service 2014-03-08 02:36:41 UTC (rev 7652)
+++ branches/release-0.94/bin/start-coaster-service 2014-03-08 03:02:30 UTC (rev 7653)
@@ -126,7 +126,11 @@
if [ -n "$GLOBUS_HOSTNAME" ]; then
IPADDR=$GLOBUS_HOSTNAME
else
- crash "Unable to determine IP address"
+ if hash curl 2>/dev/null ; then
+ IPADDR=$(curl ifconfig.me 2>/dev/null)
+ else
+ crash "Unable to determine IP address"
+ fi
fi
fi
More information about the Swift-commit
mailing list