# removes a config file for apache given the app name and site name.
function remove_apache_config()
{
- local appname="$1"; shift
local sitename="$1"; shift
local site_config="/etc/apache2/sites-available/${sitename}.conf"
fi
appname="$1"; shift
-site="$1"; shift
-site_path="$1"; shift
-if [ -z "$appname" -o -z "$site" ]; then
+if [ -z "$appname" ]; then
#hmmm: move to a print_instructions function.
echo "
$(basename $0): {app 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