senlin/uninstall.sh
tengqm 765208dbb4 Initial version borrowed from Heat
Need to check if this is really needed.
2014-12-10 17:17:35 +08:00

22 lines
485 B
Bash
Executable File

#!/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 senlin
exit
fi
type -P pip &> /dev/null && have_pip=1 || have_pip=0
if [ $have_pip -eq 1 ]; then
pip uninstall -y senlin
exit
fi
echo "pip-python not found. install package (probably python-pip) or run
'easy_install pip', then rerun $0";