projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ec7a5d
)
added guard to make sure only runs on cakelampvm
author
Chris Koeritz
<fred@gruntose.com>
Fri, 23 Mar 2018 14:27:26 +0000
(10:27 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Fri, 23 Mar 2018 14:27:26 +0000
(10:27 -0400)
scripts/site_avenger/revamp_cakelampvm.sh
patch
|
blob
|
history
diff --git
a/scripts/site_avenger/revamp_cakelampvm.sh
b/scripts/site_avenger/revamp_cakelampvm.sh
index 8dd187f9acdb9b65a3e47e51290c06e1a34d3cb4..b71d8835fc59d35daa3de0b53a646573cd673ffe 100644
(file)
--- 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.