From: Chris Koeritz Date: Mon, 13 Nov 2017 02:37:47 +0000 (-0500) Subject: trying to drop sudo rights before powerup X-Git-Tag: 2.140.98^2~2^2~7 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=7e95b376817097cab9297cf0b0a9672564d86477;p=feisty_meow.git trying to drop sudo rights before powerup --- 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)"