mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 16:29:17 +08:00
fix: 解决 sftpgo 安装失败的问题 (#1866)
This commit is contained in:
parent
cd77c672bc
commit
fb4a5491eb
@ -542,11 +542,11 @@ func upAppPre(app model.App, appInstall *model.AppInstall) error {
|
|||||||
fileOp := files.NewFileOp()
|
fileOp := files.NewFileOp()
|
||||||
switch app.Key {
|
switch app.Key {
|
||||||
case "nexus":
|
case "nexus":
|
||||||
return fileOp.Chown(dataPath, 200, 0)
|
return fileOp.ChownR(dataPath, "200", "0", true)
|
||||||
case "sftpgo":
|
case "sftpgo":
|
||||||
return files.NewFileOp().Chown(dataPath, 1000, 1000)
|
return fileOp.ChownR(dataPath, "1000", "1000", true)
|
||||||
case "pgadmin4":
|
case "pgadmin4":
|
||||||
return files.NewFileOp().Chown(dataPath, 5050, 5050)
|
return fileOp.ChownR(dataPath, "5050", "5050", true)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user