From 6bda4d6860a516f5d24d2d3ec45be18628602e57 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 23 Mar 2018 10:27:26 -0400 Subject: [PATCH] added guard to make sure only runs on cakelampvm --- scripts/site_avenger/revamp_cakelampvm.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index 8dd187f9..b71d8835 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -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. -- 2.34.1