trying to drop sudo rights before powerup
authorChris Koeritz <fred@gruntose.com>
Mon, 13 Nov 2017 02:37:47 +0000 (21:37 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 13 Nov 2017 02:37:47 +0000 (21:37 -0500)
scripts/site_avenger/standup.sh

index 5c3805c1562a495fb5b7da529fe452c8915c2a2a..ff04faba037756d6b95b8d970883cc2671684599 100644 (file)
@@ -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)"