site standup needs to be sudo
authorChris Koeritz <fred@gruntose.com>
Sun, 12 Nov 2017 03:06:23 +0000 (22:06 -0500)
committerChris Koeritz <fred@gruntose.com>
Sun, 12 Nov 2017 03:06:23 +0000 (22:06 -0500)
scripts/site_avenger/standup.sh

index 2ae953bb53409badf3ae85cafce07eee893d513f..ee4a0026e7f613ba091b9ef1dca6ece6a5c066b4 100644 (file)
@@ -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