X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Fpowerup.sh;h=433b4a1e394cbbc790839b4d1bc1b3c66d8380f7;hb=a5d77db4a9c1e15ef835977abe1a5f71fc93c7fd;hp=aa1c4425b4944d9e2e8c2078b848b5897513b12d;hpb=170a8e062d9283e65716e7aa55930ade13a66f7a;p=feisty_meow.git diff --git a/scripts/site_avenger/powerup.sh b/scripts/site_avenger/powerup.sh index aa1c4425..433b4a1e 100644 --- a/scripts/site_avenger/powerup.sh +++ b/scripts/site_avenger/powerup.sh @@ -5,8 +5,6 @@ # This script "powers up" a cakephp site by running the database migrations, # cleaning out the ORM cache, and fixing file permissions. -# Note that the mysql database must already exist and allow permissions to -# the configured username/password in config/app.php. # This script is currently highly specific to site avenger. # General Info: @@ -23,10 +21,6 @@ # start with. The concept of the theme comes from cakephp. export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. -source "$WORKDIR/shared_site_mgr.sh" - -# get our defaults. -source "$WORKDIR/site_avenger.config" ############################ @@ -57,6 +51,8 @@ if [ "$app_dirname" == "-help" -o "$app_dirname" == "--help" ]; then print_instructions fi +source "$WORKDIR/shared_site_mgr.sh" + sep check_application_dir "$APPLICATION_DIR" @@ -84,6 +80,9 @@ echo "Repository: $repo_name" echo "Theme name: $theme_name" sep +echo 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"