Update HostingSubscriptionBackup.php

This commit is contained in:
Bozhidar Slaveykov 2024-10-02 11:04:26 +03:00 committed by GitHub
parent 4ca4c7b04a
commit cff063b61a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ class HostingSubscriptionBackup extends Model
} }
public function checkCronJob() public function checkCronJob()
{ {/*
$cronJobCommand = 'phyre-php /usr/local/phyre/web/artisan phyre:create-daily-full-hosting-subscriptions-backup'; $cronJobCommand = 'phyre-php /usr/local/phyre/web/artisan phyre:create-daily-full-hosting-subscriptions-backup';
$findCronJob = CronJob::where('command', $cronJobCommand)->first(); $findCronJob = CronJob::where('command', $cronJobCommand)->first();
if (! $findCronJob) { if (! $findCronJob) {
@ -77,7 +77,7 @@ class HostingSubscriptionBackup extends Model
$cronJob->command = $cronJobCommand; $cronJob->command = $cronJobCommand;
$cronJob->user = 'root'; $cronJob->user = 'root';
$cronJob->save(); $cronJob->save();
} }*/
return true; return true;
} }