From: Chris Koeritz Date: Fri, 23 Mar 2018 14:27:26 +0000 (-0400) Subject: added guard to make sure only runs on cakelampvm X-Git-Tag: 2.140.110^2~1 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=6bda4d6860a516f5d24d2d3ec45be18628602e57;p=feisty_meow.git added guard to make sure only runs on cakelampvm --- 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.