From 7e95b376817097cab9297cf0b0a9672564d86477 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 12 Nov 2017 21:37:47 -0500 Subject: [PATCH] trying to drop sudo rights before powerup --- scripts/site_avenger/standup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/site_avenger/standup.sh b/scripts/site_avenger/standup.sh index 5c3805c1..ff04faba 100644 --- a/scripts/site_avenger/standup.sh +++ b/scripts/site_avenger/standup.sh @@ -81,6 +81,15 @@ sep echo about to do powerup with: app="$APPLICATION_NAME" repo="$REPO_NAME" theme="$THEME_NAME" echo default repo is "$DEFAULT_REPOSITORY_ROOT" +#hmmm: maybe can get rid of user name parm if this works? + +echo before redo login permissions +sudo su -i -u $(logname) +echo after redo login permissions +whoami +echo user=$USER + + # pass the real user name who should own the files. powerup "$APPLICATION_NAME" "$REPO_NAME" "$THEME_NAME" "$(logname)" -- 2.34.1