From 3f2094ce3b1ad41fb7f3cb14922a31fd557b6c2f Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 14 Nov 2017 20:36:59 -0500 Subject: [PATCH] better sudo approach for standup --- scripts/site_avenger/standup.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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" -- 2.34.1