mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update HostingSubscriptionBackup.php
This commit is contained in:
parent
4ca4c7b04a
commit
cff063b61a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue