CC-2845: airtime reinstall doesn't work when php uses --file parameter

-fix install/upgrade/reinstall issues that Daniel found.
This commit is contained in:
martin 2011-09-20 11:25:56 -04:00
parent eecb4a44d6
commit 153a89430a
4 changed files with 19 additions and 9 deletions

View file

@ -1,5 +1,10 @@
#!/bin/bash
if [ `whoami` != 'root' ]; then
echo "Please run as root user."
exit 1
fi
VIRTUAL_ENV_DIR="/usr/lib/airtime/airtime_virtualenv"
if [ ! -d "$VIRTUAL_ENV_DIR" ]; then
echo -e "\nAirtime is not installed, cannot uninstall.\n"