X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Fpowerup.sh;h=de9310c10b3b9d067e9a017b59b097b97ea088b7;hb=43099b0a5606877a692b484b58c807cf8ea20bd7;hp=28e03240535621e09910b5bba5223a51ba31cf78;hpb=2e93c29a45ae9d58694c0de962151e6829739380;p=feisty_meow.git diff --git a/scripts/site_avenger/powerup.sh b/scripts/site_avenger/powerup.sh index 28e03240..de9310c1 100644 --- a/scripts/site_avenger/powerup.sh +++ b/scripts/site_avenger/powerup.sh @@ -59,7 +59,11 @@ source "$THISDIR/shared_site_mgr.sh" sep -check_apps_root "$BASE_APPLICATION_PATH" +check_apps_root "$app_dirname" + +echo fixing some things here... +echo "apps root is now '$BASE_APPLICATION_PATH'" +echo " => this should be just above the app dir name if we got no parms!" # find proper webroot where the site will be initialized. if [ -z "$app_dirname" ]; then @@ -68,7 +72,7 @@ if [ -z "$app_dirname" ]; then else test_app_folder "$BASE_APPLICATION_PATH" "$app_dirname" fi -test_or_die "finding and testing app folder" +exit_on_error "finding and testing app folder" # where we expect to find our checkout folder underneath. full_app_dir="$BASE_APPLICATION_PATH/$app_dirname" @@ -91,17 +95,16 @@ echo "Repository: $repo_name" echo "Theme name: $theme_name" sep -echo in powerup before update repo with: -var CHECKOUT_DIR_NAME DEFAULT_REPOSITORY_ROOT +log_feisty_meow_event "in powerup before update repo with: $(var CHECKOUT_DIR_NAME DEFAULT_REPOSITORY_ROOT)" # this should set the site_store_path variable if everything goes well. update_repo "$full_app_dir" "$CHECKOUT_DIR_NAME" "$DEFAULT_REPOSITORY_ROOT" "$repo_name" -test_or_die "Updating the repository storage directory" +exit_on_error "Updating the repository storage directory" # update the site to load dependencies. sep composer_repuff "$site_store_path" -test_or_die "Installing site dependencies with composer" +exit_on_error "Installing site dependencies with composer" # set up the symbolic links needed to achieve siteliness. sep