-fix install issue

This commit is contained in:
martin 2011-09-09 10:34:30 -04:00
parent 1114494ace
commit 77068086b0
2 changed files with 5 additions and 2 deletions

View file

@ -62,10 +62,11 @@ python ${SCRIPTPATH}/../python_apps/create-pypo-user.py
set +e
php ${SCRIPTPATH}/include/airtime-install.php $@
if [ "$?" -eq "2" ]; then
$result=$?
if [ "$result" -eq "2" ]; then
#We've just finished an upgrade, so let's exit
exit 0
elif [ "$?" != "0" ]; then
elif [ "$result" -ne "0" ]; then
#There was an error, exit with error code.
exit 1
fi