X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fremove_apache_site.sh;h=ef6c8b6d79915b608f44707f9e6094bcca87a23c;hb=234c07c24942ec6cf192302d73a439ca6376d003;hp=e9b68559fd0d1420ec9916438aebb9b0d3af4e53;hpb=b9a7950d48069c75f4f47a0243d51f3961272c14;p=feisty_meow.git diff --git a/scripts/system/remove_apache_site.sh b/scripts/system/remove_apache_site.sh index e9b68559..ef6c8b6d 100644 --- a/scripts/system/remove_apache_site.sh +++ b/scripts/system/remove_apache_site.sh @@ -25,12 +25,12 @@ if [[ $EUID != 0 ]]; then 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. @@ -39,6 +39,6 @@ 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