blob: e5841bc4a1c6006871d83c239ea2b97b3ddb9ba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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."
|