CC-2796: airtime-install script has error exit 2 even when upgrade has gone perfectly
-fixed
This commit is contained in:
parent
31b7624a64
commit
7248ee4c44
2 changed files with 9 additions and 3 deletions
|
@ -59,7 +59,16 @@ virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/"
|
|||
echo -e "\n*** Creating Pypo User ***"
|
||||
python ${SCRIPTPATH}/../python_apps/create-pypo-user.py
|
||||
|
||||
set +e
|
||||
php ${SCRIPTPATH}/include/airtime-install.php $@
|
||||
if [ "$?" -eq "2" ]; then
|
||||
#We've just finished an upgrade, so let's exit
|
||||
exit 0
|
||||
elif [ "$?" != "0" ]; then
|
||||
#There was an error, exit with error code.
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo -e "\n*** API Client Installation ***"
|
||||
python ${SCRIPTPATH}/../python_apps/api_clients/install/api_client_install.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue