This commit is contained in:
ACoolName 2024-05-26 00:27:36 +03:00
parent 45793df0eb
commit aa6ad77d4f

View File

@ -676,7 +676,7 @@ func (con Connection) BrowseServer(ctx *gin.Context) {
ctx.AbortWithError(500, err)
return
}
command, err := shellwords.Split("-r /tmp/data --noauth")
command, err := shellwords.Split("--noauth -r /tmp/data")
if err != nil {
ctx.AbortWithError(500, err)
return
@ -711,6 +711,7 @@ func (con Connection) BrowseServer(ctx *gin.Context) {
Cmd: command,
Image: FILE_BROWSER_IMAGE,
Labels: browserLabels,
Tty: true,
},
&container.HostConfig{
Mounts: []mount.Mount{{Source: serverInfo.Id, Target: "/tmp/data", Type: "volume"}},