From 1ed3acc30917215e1ba6cda8c7323bc2ccdce7b6 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 11 Nov 2017 22:06:23 -0500 Subject: [PATCH] site standup needs to be sudo --- scripts/site_avenger/standup.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1