Skip to content

Commit

Permalink
fix #613, delete -i for cp command
Browse files Browse the repository at this point in the history
Signed-off-by: oldthreefeng <[email protected]>
  • Loading branch information
oldthreefeng committed Mar 29, 2021
1 parent 7a8e06b commit c631e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (s *SealosInstaller) JoinMasters(masters []string) {
_ = SSHConfig.CmdAsync(master, cmd)
cmdHosts = fmt.Sprintf(`sed "s/%s/%s/g" -i /etc/hosts`, getApiserverHost(IpFormat(s.Masters[0])), getApiserverHost(IpFormat(master)))
_ = SSHConfig.CmdAsync(master, cmdHosts)
copyk8sConf := `mkdir -p /root/.kube && cp -i /etc/kubernetes/admin.conf /root/.kube/config && chmod 600 /root/.kube/config`
copyk8sConf := `mkdir -p /root/.kube && cp /etc/kubernetes/admin.conf /root/.kube/config && chmod 600 /root/.kube/config`
_ = SSHConfig.CmdAsync(master, copyk8sConf)
cleaninstall := `rm -rf /root/kube || :`
_ = SSHConfig.CmdAsync(master, cleaninstall)
Expand Down

0 comments on commit c631e04

Please sign in to comment.