X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Fshared_site_mgr.sh;h=41b033febdc1d5140b477e1a77c3a1e14afa7737;hb=306dbab38a3af18dac7e13c8e476cf0a95d78c76;hp=8b18814cd3031926177e7b298be26c80adf417fe;hpb=5eed0d1279cd85a36da87ecaaff6c261f41a87f8;p=feisty_meow.git diff --git a/scripts/site_avenger/shared_site_mgr.sh b/scripts/site_avenger/shared_site_mgr.sh index 8b18814c..41b033fe 100644 --- a/scripts/site_avenger/shared_site_mgr.sh +++ b/scripts/site_avenger/shared_site_mgr.sh @@ -5,8 +5,20 @@ # This contains a bunch of reusable functions that help out in managing websites. +# This script is sourced, and relies on the value of WORKDIR, which should +# point at the directory where the site management scripts are stored, +# especially this one. + source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +# get our configuration loaded. +export SITE_MANAGEMENT_CONFIG_FILE +if [ -z "$SITE_MANAGEMENT_CONFIG_FILE" ]; then + SITE_MANAGEMENT_CONFIG_FILE="$WORKDIR/configs/default-site_avenger.config" +fi +source "$SITE_MANAGEMENT_CONFIG_FILE" +test_or_die "loading site management configuration from: $SITE_MANAGEMENT_CONFIG_FILE" + # configure feisty revision control to ignore vendor folders. export NO_CHECKIN_VENDOR=true