-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 set +e
php ${SCRIPTPATH}/include/airtime-install.php $@ 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 #We've just finished an upgrade, so let's exit
exit 0 exit 0
elif [ "$?" != "0" ]; then elif [ "$result" -ne "0" ]; then
#There was an error, exit with error code. #There was an error, exit with error code.
exit 1 exit 1
fi fi

View File

@ -352,6 +352,7 @@ class AirtimeInstall
exec("rm -f /usr/bin/airtime-import"); exec("rm -f /usr/bin/airtime-import");
exec("rm -f /usr/bin/airtime-update-db-settings"); exec("rm -f /usr/bin/airtime-update-db-settings");
exec("rm -f /usr/bin/airtime-check-system"); exec("rm -f /usr/bin/airtime-check-system");
exec("rm -f /usr/bin/airtime-user");
} }
public static function InstallPhpCode() public static function InstallPhpCode()
@ -432,6 +433,7 @@ class AirtimeInstall
} }
public static function CreateCronFile(){ public static function CreateCronFile(){
echo "* Creating Cron File".PHP_EOL;
// Create CRON task to run every day. Time of day is initialized to a random time. // Create CRON task to run every day. Time of day is initialized to a random time.
$hour = rand(0,23); $hour = rand(0,23);
$minute = rand(0,59); $minute = rand(0,59);