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:
8f9a3ac
)
site standup needs to be sudo
author
Chris Koeritz
<fred@gruntose.com>
Sun, 12 Nov 2017 03:06:23 +0000
(22:06 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Sun, 12 Nov 2017 03:06:23 +0000
(22:06 -0500)
scripts/site_avenger/standup.sh
patch
|
blob
|
history
diff --git
a/scripts/site_avenger/standup.sh
b/scripts/site_avenger/standup.sh
index 2ae953bb53409badf3ae85cafce07eee893d513f..ee4a0026e7f613ba091b9ef1dca6ece6a5c066b4 100644
(file)
--- a/
scripts/site_avenger/standup.sh
+++ b/
scripts/site_avenger/standup.sh
@@
-31,6
+31,11
@@
overridden by setting the SITE_MANAGEMENT_CONFIG_FILE environment variable."
# check for parameters.
app_dirname="$1"; shift
+if (( $EUID != 0 )); then
+ echo "This script must be run as root or sudo."
+ exit 1
+fi
+
if [ -z "$app_dirname" ]; then
print_instructions
fi