mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
Merge pull request #13713 from swordqiu/automated-cherry-pick-of-#13711-upstream-release-3.8
Automated cherry pick of #13711: fix: host deploy mkdir permission
This commit is contained in:
@@ -50,7 +50,7 @@ func (d *sGuestRootFsDriver) DeployFiles(deploys []*deployapi.DeployContent) err
|
||||
}
|
||||
dirname := filepath.Dir(deploy.Path)
|
||||
if !d.GetPartition().Exists(dirname, caseInsensitive) {
|
||||
modeRWXOwner := syscall.S_IRUSR | syscall.S_IWUSR | syscall.S_IXUSR
|
||||
modeRWXOwner := syscall.S_IRUSR | syscall.S_IWUSR | syscall.S_IXUSR | syscall.S_IRGRP | syscall.S_IXGRP | syscall.S_IROTH | syscall.S_IXOTH
|
||||
err := d.GetPartition().Mkdir(dirname, modeRWXOwner, caseInsensitive)
|
||||
if err != nil {
|
||||
log.Errorln(err)
|
||||
|
||||
Reference in New Issue
Block a user