projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git]
/
scripts
/
system
/
remove_apache_site.sh
diff --git
a/scripts/system/remove_apache_site.sh
b/scripts/system/remove_apache_site.sh
index fb915d7e7bce887981756ccbfeba1bb4e8d1ea69..ef6c8b6d79915b608f44707f9e6094bcca87a23c 100644
(file)
--- a/
scripts/system/remove_apache_site.sh
+++ b/
scripts/system/remove_apache_site.sh
@@
-25,24
+25,20
@@
if [[ $EUID != 0 ]]; then
exit 1
fi
exit 1
fi
-appname="$1"; shift
site="$1"; shift
site="$1"; shift
-site_path="$1"; shift
-if [ -z "$
appname" -o -z "$
site" ]; then
+if [ -z "$site" ]; then
#hmmm: move to a print_instructions function.
echo "
#hmmm: move to a print_instructions function.
echo "
-$(basename $0): {
app
name}
+$(basename $0): {
dns
name}
-This script needs to know (1) the application name for the site and
-(2) the DNS name for the apache virtual host. The appname should be an
-appropriate name for a file-system compatible folder 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.
"
exit 1
fi
disable_site "$site"
The script will uninstall that site's configuration files for apache2.
"
exit 1
fi
disable_site "$site"
-remove_apache_config "$
appname" "$
site"
+remove_apache_config "$site"
restart_apache
restart_apache