Various fixes for installer

-create zendphp.log before web files are available
-run airtime.php script earlier so DB is created before web files are available
-zendphp.log should have 644 permissions, not 755
This commit is contained in:
Martin Konecny 2012-05-05 21:34:09 -04:00
parent 5aea66a5c4
commit bb5deda09d
5 changed files with 31 additions and 25 deletions

View file

@ -160,6 +160,19 @@ if [ "$DO_UPGRADE" -eq "1" ]; then
php --php-ini ${SCRIPTPATH}/airtime-php.ini ${SCRIPTPATH}/include/airtime-upgrade.php $@
fi
set +e
if [ "$DO_UPGRADE" -eq "0" ]; then
php --php-ini ${SCRIPTPATH}/airtime-php.ini ${SCRIPTPATH}/include/airtime-install.php $@
result=$?
if [ "$result" -ne "0" ]; then
#There was an error, exit with error code.
echo "There was an error during install. Exit code $result"
exit 1
fi
fi
set -e
$SCRIPTPATH/include/airtime-copy-files.sh
$SCRIPTPATH/include/airtime-initialize.sh $@