-fix install issue
This commit is contained in:
parent
1114494ace
commit
77068086b0
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue