Skip to content

Commit 050b40f

Browse files
committed
Touch with sudo
Signed-off-by: Kimmo Lehto <[email protected]>
1 parent 409601a commit 050b40f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phase/upload_k0s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (p *UploadK0s) uploadBinary(_ context.Context, h *cluster.Host) error {
8282
return fmt.Errorf("stat %s: %w", h.UploadBinaryPath, err)
8383
}
8484

85-
if err := h.Configurer.Touch(h, tmp, stat.ModTime()); err != nil {
85+
if err := h.Configurer.Touch(h, tmp, stat.ModTime(), exec.Sudo(h)); err != nil {
8686
return fmt.Errorf("failed to touch %s: %w", tmp, err)
8787
}
8888
if err := chmodWithMode(h, tmp, fs.FileMode(0o755)); err != nil {

0 commit comments

Comments
 (0)