mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
fix wrong local disk for export, and prefer local to remote
This commit is contained in:
parent
d2e1493530
commit
321676c97f
@ -28,13 +28,13 @@ $uploadDisk = [
|
||||
|
||||
$exportDisk = [
|
||||
'driver' => 'mirror',
|
||||
'disks' => ['local-upload'],
|
||||
'disks' => ['local-export'],
|
||||
];
|
||||
|
||||
// setting the SFTP host is enough to trigger the SFTP option.
|
||||
if ('' !== env('SFTP_HOST', '')) {
|
||||
array_unshift($uploadDisk['disks'], 'sftp-upload');
|
||||
array_unshift($exportDisk['disks'], 'sftp-export');
|
||||
array_push($uploadDisk['disks'], 'sftp-upload');
|
||||
array_push($exportDisk['disks'], 'sftp-export');
|
||||
}
|
||||
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user