From 20e64501b4305ee07f5b765ad3b8efd7740f2ec1 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 14 Nov 2017 23:58:56 -0500 Subject: [PATCH] tasty! apache remover is working --- scripts/system/common_sysadmin.sh | 2 +- scripts/system/remove_apache_site.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/system/common_sysadmin.sh b/scripts/system/common_sysadmin.sh index 50f240fa..223067f6 100644 --- a/scripts/system/common_sysadmin.sh +++ b/scripts/system/common_sysadmin.sh @@ -337,7 +337,7 @@ function maybe_create_site_storage() chmod -R g+rx "$chow_path" # walk backwards up the path and fix perms. while [[ $chow_path != $HOME ]]; do -echo chow path is now $chow_path +#echo chow path is now $chow_path chmod g+rx "$chow_path" test_or_die "Failed to add group permissions on the path: $chow_path" # reassert the user's ownership of any directories we might have just created. 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 -- 2.34.1