EG install scripts: force-change hostname from "non-prod" to "prod" when -p switch...
authortwirlip <twirlip@twirlip.org>
Tue, 16 May 2017 22:11:50 +0000 (15:11 -0700)
committertwirlip <twirlip@twirlip.org>
Tue, 16 May 2017 22:11:50 +0000 (15:11 -0700)
deployment/install-eg.sh
deployment/install-osrf.sh

index 06d5bb3..c6969dd 100755 (executable)
@@ -34,6 +34,7 @@ shift $(($OPTIND - 1))
 
 if [[ -n "$PROD" ]] ; then
   echo 'this is a production install'
+  [ "$HOSTNAME" == "nonprod" ] && HOSTNAME="prod"
 else
   echo 'this is NOT a production install'
 fi
index 89261c5..16ee489 100755 (executable)
@@ -37,6 +37,7 @@ fi
 
 if [[ -n "$PROD" ]] ; then
   echo 'this is a production install'
+  [ "$HOSTNAME" == "nonprod" ] && HOSTNAME="prod"
 else
   echo 'this is NOT a production install'
 fi