OpenStack Orchestration (Heat)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uninstall.sh 489B

123456789101112131415161718192021
  1. #!/bin/bash
  2. if [ $EUID -ne 0 ]; then
  3. echo "This script must be run as root." >&2
  4. exit
  5. fi
  6. type -P pip-python &> /dev/null && have_pip_python=1 || have_pip_python=0
  7. if [ $have_pip_python -eq 1 ]; then
  8. pip-python uninstall -y heat
  9. exit
  10. fi
  11. type -P pip &> /dev/null && have_pip=1 || have_pip=0
  12. if [ $have_pip -eq 1 ]; then
  13. pip uninstall -y heat
  14. exit
  15. fi
  16. echo "pip-python not found. install package (probably python-pip) or run
  17. 'easy_install pip', then rerun $0" >&2;