Add uninstall script for Heat

Change-Id: I1f0cbde19f5b75106d93cafdbd0b8fbf47cbbfe0
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
This commit is contained in:
Jeff Peeler 2012-06-23 22:41:30 -04:00
parent e0c3141253
commit 6603aa27fe
1 changed files with 21 additions and 0 deletions

21
uninstall.sh Executable file
View File

@ -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";