summaryrefslogtreecommitdiff
path: root/uninstall.sh
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@redhat.com>2012-06-23 22:41:30 -0400
committerJeff Peeler <jpeeler@redhat.com>2012-06-23 22:41:30 -0400
commit6603aa27fed8540dfade5e8541d2e1203f5afebe (patch)
tree25eee6f0ff2dcf84d2244be66c027327b72dcf64 /uninstall.sh
parente0c314125318b5d1c2120fa23ddc03f09e91dc36 (diff)
downloadheat-6603aa27fed8540dfade5e8541d2e1203f5afebe.tar.gz
Add uninstall script for Heat
Change-Id: I1f0cbde19f5b75106d93cafdbd0b8fbf47cbbfe0 Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Diffstat (limited to 'uninstall.sh')
-rwxr-xr-xuninstall.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/uninstall.sh b/uninstall.sh
new file mode 100755
index 000000000..e9e09f1c8
--- /dev/null
+++ b/uninstall.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ $EUID -ne 0 ]; then
+ echo "This script must be run as root."
+ exit
+fi
+
+type -P pip-python &> /dev/null && have_pip_python=1 || have_pip_python=0
+if [ $have_pip_python -eq 1 ]; then
+ pip-python uninstall -y heat
+ exit
+fi
+
+type -P pip &> /dev/null && have_pip=1 || have_pip=0
+if [ $have_pip -eq 1 ]; then
+ pip uninstall -y heat
+ exit
+fi
+
+echo "pip-python not found. install package (probably python-pip) or run
+'easy_install pip', then rerun $0";