From fb4a5491eb46ce1d5b933ec246cf994349b27a70 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:06:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20sftpgo=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=20(#1866?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app_utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index a9d157035..b86175834 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -542,11 +542,11 @@ func upAppPre(app model.App, appInstall *model.AppInstall) error { fileOp := files.NewFileOp() switch app.Key { case "nexus": - return fileOp.Chown(dataPath, 200, 0) + return fileOp.ChownR(dataPath, "200", "0", true) case "sftpgo": - return files.NewFileOp().Chown(dataPath, 1000, 1000) + return fileOp.ChownR(dataPath, "1000", "1000", true) case "pgadmin4": - return files.NewFileOp().Chown(dataPath, 5050, 5050) + return fileOp.ChownR(dataPath, "5050", "5050", true) } return nil }