mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 01:34:45 +02:00
Use proper newline, not literal \n
This commit is contained in:
parent
794cf9d9dd
commit
dbb6f69e00
@ -49,7 +49,7 @@ class DaemonBackupRepository extends DaemonRepository
|
|||||||
'json' => [
|
'json' => [
|
||||||
'adapter' => $this->adapter ?? config('backups.default'),
|
'adapter' => $this->adapter ?? config('backups.default'),
|
||||||
'uuid' => $backup->uuid,
|
'uuid' => $backup->uuid,
|
||||||
'ignore' => implode('\n', $backup->ignored_files),
|
'ignore' => implode("\n", $backup->ignored_files),
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -141,7 +141,7 @@ class InitiateBackupService
|
|||||||
'server_id' => $server->id,
|
'server_id' => $server->id,
|
||||||
'uuid' => Uuid::uuid4()->toString(),
|
'uuid' => Uuid::uuid4()->toString(),
|
||||||
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()),
|
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()),
|
||||||
'ignored_files' => is_array($this->ignoredFiles) ? array_values($this->ignoredFiles) : [],
|
'ignored_files' => array_values($this->ignoredFiles ?? []),
|
||||||
'disk' => $this->backupManager->getDefaultAdapter(),
|
'disk' => $this->backupManager->getDefaultAdapter(),
|
||||||
], true, true);
|
], true, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user