Skip to content

Commit

Permalink
fix kubesphere#2143: My bin directory was deleted by installContainer…
Browse files Browse the repository at this point in the history
…dMoudle
  • Loading branch information
deqingLv committed Feb 25, 2024
1 parent a84aaeb commit 20934f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kk/pkg/container/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *SyncContainerd) Execute(runtime connector.Runtime) error {
}

if _, err := runtime.GetRunner().SudoCmd(
fmt.Sprintf("mkdir -p /usr/bin && tar -zxf %s && mv bin/* /usr/bin && rm -rf bin", dst),
fmt.Sprintf("mkdir -p /usr/bin && cd %s && tar -zxf %s && mv bin/* /usr/bin && rm -rf bin", common.TmpDir, dst),
false); err != nil {
return errors.Wrap(errors.WithStack(err), fmt.Sprintf("install containerd binaries failed"))
}
Expand Down

0 comments on commit 20934f7

Please sign in to comment.