Loading go-apps/meepctl/cmd/deploy.go +11 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,17 @@ func deployEnsureStorage(cobraCmd *cobra.Command) { err = errors.New("Error creating path [" + deployData.workdir + "]") fmt.Println(err) } // Set ownership of the workdir to the configured uid and gid uid := utils.RepoCfg.GetString("repo.deployment.permissions.uid") gid := utils.RepoCfg.GetString("repo.deployment.permissions.gid") if uid != "" && gid != "" { chownCmd := exec.Command("chown", "-R", uid+":"+gid, deployData.workdir) _, err = utils.ExecuteCmd(chownCmd, cobraCmd) if err != nil { fmt.Println("Warning: Error setting ownership for path [" + deployData.workdir + "]. You may need to run this command with elevated privileges (e.g., sudo).") } } } // Deploy core Loading Loading
go-apps/meepctl/cmd/deploy.go +11 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,17 @@ func deployEnsureStorage(cobraCmd *cobra.Command) { err = errors.New("Error creating path [" + deployData.workdir + "]") fmt.Println(err) } // Set ownership of the workdir to the configured uid and gid uid := utils.RepoCfg.GetString("repo.deployment.permissions.uid") gid := utils.RepoCfg.GetString("repo.deployment.permissions.gid") if uid != "" && gid != "" { chownCmd := exec.Command("chown", "-R", uid+":"+gid, deployData.workdir) _, err = utils.ExecuteCmd(chownCmd, cobraCmd) if err != nil { fmt.Println("Warning: Error setting ownership for path [" + deployData.workdir + "]. You may need to run this command with elevated privileges (e.g., sudo).") } } } // Deploy core Loading