2012-06-23 22:41:30 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $EUID -ne 0 ]; then
|
2015-11-27 09:23:13 +08:00
|
|
|
echo "This script must be run as root." >&2
|
2012-06-23 22:41:30 -04:00
|
|
|
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
|
2015-11-27 09:23:13 +08:00
|
|
|
'easy_install pip', then rerun $0" >&2;
|