From: Chris Koeritz Date: Wed, 15 Nov 2017 01:36:59 +0000 (-0500) Subject: better sudo approach for standup X-Git-Tag: 2.140.100^2~12^2~3 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=3f2094ce3b1ad41fb7f3cb14922a31fd557b6c2f;p=feisty_meow.git better sudo approach for standup --- diff --git a/scripts/site_avenger/standup.sh b/scripts/site_avenger/standup.sh index 7752c59c..c31a33d8 100644 --- a/scripts/site_avenger/standup.sh +++ b/scripts/site_avenger/standup.sh @@ -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"