Skip to content

Commit 5c8f3ab

Browse files
authored
Fix missing sudo from chmod during binary uploads (#325)
1 parent 8d863c7 commit 5c8f3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phase/upload_binaries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (p *UploadBinaries) uploadBinary(h *cluster.Host) error {
4343
return err
4444
}
4545

46-
if err := h.Configurer.Chmod(h, h.Configurer.K0sBinaryPath(), "0700"); err != nil {
46+
if err := h.Configurer.Chmod(h, h.Configurer.K0sBinaryPath(), "0700", exec.Sudo(h)); err != nil {
4747
return err
4848
}
4949

0 commit comments

Comments
 (0)