summaryrefslogtreecommitdiffstats
path: root/extras/apache-deploy/uninstall.sh
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2013-10-21 15:05:33 +0530
committerLuis Pabon <lpabon@redhat.com>2013-10-23 18:54:17 -0700
commitade571006d145b0ade2094a1840b67927a18d6d5 (patch)
treefe05a1bbf7a4f6d12d4ab076a1414bc3769c0d32 /extras/apache-deploy/uninstall.sh
parent11e2be75faa5af4f5c724c61447559693cd05b7f (diff)
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>
Diffstat (limited to 'extras/apache-deploy/uninstall.sh')
-rwxr-xr-xextras/apache-deploy/uninstall.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/extras/apache-deploy/uninstall.sh b/extras/apache-deploy/uninstall.sh
new file mode 100755
index 0000000..e5841bc
--- /dev/null
+++ b/extras/apache-deploy/uninstall.sh
@@ -0,0 +1,19 @@
+#!/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."