From 56da107d9c904a98c85a62ef741e0def95be0277 Mon Sep 17 00:00:00 2001 From: Dan Jones <108552543+danj-replicated@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:42:23 +0000 Subject: [PATCH] Don't create /root/0750 (#619) Signed-off-by: danj-replicated --- phase/configure_k0s.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phase/configure_k0s.go b/phase/configure_k0s.go index e131322f..f62940d9 100644 --- a/phase/configure_k0s.go +++ b/phase/configure_k0s.go @@ -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) } }