CC-2806: Create upgrade template file

-missing function
-comment out redundant code
This commit is contained in:
martin 2011-09-29 18:27:24 -04:00
parent 421f543f99
commit d93a9edcd2
4 changed files with 11 additions and 6 deletions

View file

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