# uninstalls the apache website for a specified domain.
# auto-find the scripts, since we might want to run this as sudo.
-export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory.
-export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../.." && \pwd )"
+export THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory.
+export FEISTY_MEOW_APEX="$( \cd "$THISDIR/../.." && \pwd )"
source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh"
source "$FEISTY_MEOW_SCRIPTS/system/common_sysadmin.sh"
exit 1
fi
-appname="$1"; shift
+site="$1"; shift
-if [ -z "$appname" ]; then
+if [ -z "$site" ]; then
#hmmm: move to a print_instructions function.
echo "
-$(basename $0): {app name}
+$(basename $0): {dns name}
This script needs to know (1) the DNS name for the apache virtual host.
The script will uninstall that site's configuration files for apache2.
fi
disable_site "$site"
-remove_apache_config "$appname" "$site"
+remove_apache_config "$site"
restart_apache