added guard to make sure only runs on cakelampvm
authorChris Koeritz <fred@gruntose.com>
Fri, 23 Mar 2018 14:27:26 +0000 (10:27 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 23 Mar 2018 14:27:26 +0000 (10:27 -0400)
scripts/site_avenger/revamp_cakelampvm.sh

index 8dd187f9acdb9b65a3e47e51290c06e1a34d3cb4..b71d8835fc59d35daa3de0b53a646573cd673ffe 100644 (file)
@@ -9,6 +9,11 @@ if [[ $EUID != 0 ]]; then
   exit 1
 fi
 
+if [[ ! $(hostname) == *cakelampvm* ]]; then
+  echo "This script is only designed to be run on the cakelampvm host."
+  exit 1
+fi
+
 ##############
 
 export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )"  # obtain the script's working directory.