better sudo approach for standup
authorChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 01:36:59 +0000 (20:36 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 01:36:59 +0000 (20:36 -0500)
scripts/site_avenger/standup.sh

index 7752c59cdfd95476c00c2f838eed5cd7c9701e85..c31a33d8390e0e11487dec439146a08e780d3cdb 100644 (file)
@@ -47,11 +47,9 @@ elif [ -z "$app_dirname" ]; then
   print_instructions
 fi
 
-#we will require sudo later.
-#if [[ $EUID != 0 ]]; then
-#  echo "This script must be run as root or sudo."
-#  exit 1
-#fi
+# force the sudo at the start of the script, rather than waiting halfway
+# through to ask for access.
+sudo bash -c 'echo sudo permissions acquired.'
 
 source "$WORKDIR/shared_site_mgr.sh"