mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-06-02 08:29:01 +00:00
Fixes/backup issues (#51)
* Fix: Error related to undefined Backup::size() * Fix: Disable signals if PCNTL isn't loaded to avoid fatal error (Fixes SIGINT is not defined on environments that are missing the PCNTL library)
This commit is contained in:
committed by
GitHub
parent
8788f3d504
commit
9bb4963e8a
@@ -44,6 +44,9 @@ class CreateBackupJob implements ShouldQueue
|
||||
config(['backup.backup.destination.disks' => [$prefix.$fileDisk->driver]]);
|
||||
|
||||
$backupJob = BackupJobFactory::createFromArray(config('backup'));
|
||||
if (! defined('SIGINT')) {
|
||||
$backupJob->disableSignals();
|
||||
}
|
||||
|
||||
if ($this->data['option'] === 'only-db') {
|
||||
$backupJob->dontBackupFilesystem();
|
||||
|
||||
Reference in New Issue
Block a user