From: Chris Koeritz Date: Sun, 12 Nov 2017 03:06:23 +0000 (-0500) Subject: site standup needs to be sudo X-Git-Tag: 2.140.98^2~27^2~5^2~1 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=1ed3acc30917215e1ba6cda8c7323bc2ccdce7b6;p=feisty_meow.git site standup needs to be sudo --- diff --git a/scripts/site_avenger/standup.sh b/scripts/site_avenger/standup.sh index 2ae953bb..ee4a0026 100644 --- 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