mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 22:03:44 +02:00
Slightly cleanup
This commit is contained in:
@@ -23,12 +23,9 @@ class Kernel extends ConsoleKernel
|
||||
// Execute scheduled commands for servers every minute, as if there was a normal cron running.
|
||||
$schedule->command('p:schedule:process')->everyMinute()->withoutOverlapping();
|
||||
|
||||
// Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted.
|
||||
$pruneAge = config('backups.prune_age', 360); // Defaults to 6 hours (time is in minuteS)
|
||||
if ($pruneAge > 0) {
|
||||
$schedule->command('p:maintenance:prune-backups', [
|
||||
'--since-minutes' => $pruneAge,
|
||||
])->everyThirtyMinutes();
|
||||
if (config('backups.prune_age')) {
|
||||
// Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted.
|
||||
$schedule->command('p:maintenance:prune-backups')->everyThirtyMinutes();
|
||||
}
|
||||
|
||||
// Every day cleanup any internal backups of service files.
|
||||
|
||||
Reference in New Issue
Block a user