X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Fteardown.sh;h=5bfcbd4699b9a01696af8f4a85ebd8e6b9bb2252;hb=6d4552cd3fca6d9c2f38f96bd2f7fde8d54c3bf2;hp=3e194083baa03488ab4705dd7edd9b30619b82a0;hpb=145a6090fd0b4472392593e47b29729525edd1e2;p=feisty_meow.git diff --git a/scripts/site_avenger/teardown.sh b/scripts/site_avenger/teardown.sh index 3e194083..5bfcbd46 100644 --- a/scripts/site_avenger/teardown.sh +++ b/scripts/site_avenger/teardown.sh @@ -62,6 +62,13 @@ sep sudo bash "$FEISTY_MEOW_SCRIPTS/system/remove_apache_site.sh" "$DOMAIN_NAME" test_or_die "dropping apache site for: $DOMAIN_NAME" +# drop the shadow site too. +shadow_domain="${APPLICATION_NAME}.cakelampvm.com" +if [ "$shadow_domain" != "$DOMAIN_NAME" ]; then + sudo bash "$FEISTY_MEOW_SCRIPTS/system/remove_apache_site.sh" "$shadow_domain" + test_or_die "dropping shadow apache site on '$shadow_domain'" +fi + sep #echo "!! domain being removed is: $DOMAIN_NAME"