Skip to content

Commit

Permalink
Fix missing sudo from chmod during binary uploads (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke committed Feb 14, 2022
1 parent 8d863c7 commit 5c8f3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase/upload_binaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (p *UploadBinaries) uploadBinary(h *cluster.Host) error {
return err
}

if err := h.Configurer.Chmod(h, h.Configurer.K0sBinaryPath(), "0700"); err != nil {
if err := h.Configurer.Chmod(h, h.Configurer.K0sBinaryPath(), "0700", exec.Sudo(h)); err != nil {
return err
}

Expand Down

0 comments on commit 5c8f3ab

Please sign in to comment.