mirror of https://github.com/1Panel-dev/1Panel
fix: 解决网站文件层级过多导致的授权超时问题 (#3451)
parent
0b94524994
commit
a6c681a429
|
@ -1413,7 +1413,7 @@ func (w WebsiteService) UpdateSitePermission(req request.WebsiteUpdateDirPermiss
|
|||
if cmd.HasNoPasswordSudo() {
|
||||
chownCmd = fmt.Sprintf("sudo %s", chownCmd)
|
||||
}
|
||||
if out, err := cmd.ExecWithTimeOut(chownCmd, 1*time.Second); err != nil {
|
||||
if out, err := cmd.ExecWithTimeOut(chownCmd, 10*time.Second); err != nil {
|
||||
if out != "" {
|
||||
return errors.New(out)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue