Skip to content

Commit 56da107

Browse files
Don't create /root/0750 (#619)
Signed-off-by: danj-replicated <[email protected]>
1 parent 3dcf3f0 commit 56da107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phase/configure_k0s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (p *ConfigureK0s) configureK0s(h *cluster.Host) error {
244244
configDir := gopath.Dir(configPath)
245245

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

0 commit comments

Comments
 (0)