swiftonhpss/extras/apache-deploy/uninstall.sh
Prashanth Pai ade571006d Deploy Apache as web front-end for gluster-swift
Swift can alternatively be configured to work as a request processor of
Apache server. This alternative deployment scenario uses mod_wsgi of
Apache to forward requests to the swift wsgi application and middleware.

'client' <---> 'Apache2+mod_wsgi' <---> 'middleware' <---> 'core swift'

Change-Id: If396dcbdf651af0dce55b951cd2eaadc6783384f
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Reviewed-on: http://review.gluster.org/6116
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Tested-by: Luis Pabon <lpabon@redhat.com>
2013-10-23 18:54:17 -07:00

20 lines
338 B
Bash
Executable File

#!/bin/sh -x
# For Fedora/RHEL ONLY
if [ $EUID -ne 0 ]; then
echo "This script must be run as root"
exit 1
fi
# Stop Apache service
service httpd stop
# Remove swift wsgi files
rm -rf /var/www/swift
# Remove swift httpd config file
rm -f /etc/httpd/conf.d/swift_wsgi.conf
echo -e "DONE.\nYou can now restart Swift."