From 1e3a24072985217d9fe8096ebff5cee1e881b05e Mon Sep 17 00:00:00 2001 From: ralf Date: Sat, 18 Nov 2023 09:16:16 +0200 Subject: [PATCH] fix S3direct stream-wrapper to be auto-loadable and mountable into Vfs, also using it when mounting backups into vfs --- setup/db_backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/db_backup.php b/setup/db_backup.php index b1afae7cc6..1a07aaf4b5 100644 --- a/setup/db_backup.php +++ b/setup/db_backup.php @@ -126,7 +126,7 @@ if (!empty($_POST['mount'])) { Vfs::$is_root = true; echo '
'. - (Vfs::mount('filesystem://default'.$db_backup->backup_dir.'?group=Admins&mode=070','/backup',false) ? + (Vfs::mount(($db_backup->backup_dir[0] === '/' ? 'filesystem://default' : '').$db_backup->backup_dir.'?group=Admins&mode=070','/backup',false) ? lang('Backup directory %1 mounted as %2',$db_backup->backup_dir,'/backup') : lang('Failed to mount Backup directory!')). "
\n";