mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-18 19:39:29 +08:00
fix: 解决网站文件层级过多导致的授权超时问题 (#3451)
This commit is contained in:
parent
0b94524994
commit
a6c681a429
@ -1413,7 +1413,7 @@ func (w WebsiteService) UpdateSitePermission(req request.WebsiteUpdateDirPermiss
|
|||||||
if cmd.HasNoPasswordSudo() {
|
if cmd.HasNoPasswordSudo() {
|
||||||
chownCmd = fmt.Sprintf("sudo %s", chownCmd)
|
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 != "" {
|
if out != "" {
|
||||||
return errors.New(out)
|
return errors.New(out)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user