not sure that was modified.
[feisty_meow.git] / scripts / site_avenger / standup.sh
index 56684b9cefd8d3bbdc06bb433f6345cb05be7d71..4b97c9ca99838f0333bb573924d6857654d58bc8 100644 (file)
@@ -66,6 +66,8 @@ else
   test_app_folder "$APPLICATION_DIR" "$app_dirname"
 fi
 
+echo "!! domain being added is: $DOMAIN_NAME"
+
 add_domain "$DOMAIN_NAME"
 test_or_die "Setting up domain: $DOMAIN_NAME"
 
@@ -76,7 +78,19 @@ test_or_die "Setting up apache site for: $APPLICATION_NAME"
 
 sep
 
-powerup "$APPLICATION_NAME" "$REPO_NAME" "$THEME_NAME"
+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)"
 
 sep