Skip to content

Commit

Permalink
Don't create /root/0750 (#619)
Browse files Browse the repository at this point in the history
Signed-off-by: danj-replicated <[email protected]>
  • Loading branch information
danj-replicated committed Jan 4, 2024
1 parent 3dcf3f0 commit 56da107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase/configure_k0s.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (p *ConfigureK0s) configureK0s(h *cluster.Host) error {
configDir := gopath.Dir(configPath)

if !h.Configurer.FileExist(h, configDir) {
if err := h.Execf(`install -d 0750 -o root -g root "%s"`, configDir, exec.Sudo(h)); err != nil {
if err := h.Execf(`install -m 0750 -o root -g root -d "%s"`, configDir, exec.Sudo(h)); err != nil {
return fmt.Errorf("failed to create k0s configuration directory: %w", err)
}
}
Expand Down

0 comments on commit 56da107

Please sign in to comment.