fix S3direct stream-wrapper to be auto-loadable and mountable into Vfs, also using it when mounting backups into vfs

This commit is contained in:
ralf 2023-11-18 09:16:16 +02:00
parent 6fcbf87a10
commit 1e3a240729

View File

@ -126,7 +126,7 @@ if (!empty($_POST['mount']))
{
Vfs::$is_root = true;
echo '<div align="center">'.
(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!')).
"</div>\n";