CC-2463:Install doesn't overwrite cron file
-fixed
This commit is contained in:
parent
0111fd5725
commit
3306292f93
@ -151,7 +151,7 @@ AirtimeInstall::CreateZendPhpLogFile();
|
||||
$hour = rand(0,23);
|
||||
$minute = rand(0,59);
|
||||
|
||||
$fp = fopen('/etc/cron.d/airtime-crons','a');
|
||||
$fp = fopen('/etc/cron.d/airtime-crons','w');
|
||||
fwrite($fp, "$minute $hour * * * root /usr/lib/airtime/utils/phone_home_stat\n");
|
||||
fclose($fp);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user