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

@ -2,6 +2,11 @@
#-e Causes bash script to exit if any of the installers
#return with a non-zero return value.
if [ `whoami` != 'root' ]; then
echo "Please run as root user."
exit 1
fi
set +e
DEB=$(dpkg -s airtime 2> /dev/null | grep Status)
set -e