Skip to content

Commit

Permalink
Merge pull request labring#614 from oldthreefeng/develop
Browse files Browse the repository at this point in the history
fix labring#613, delete -i for cp command
  • Loading branch information
fanux authored Apr 7, 2021
2 parents 7a8e06b + a50453c commit 3094c13
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 := `rm -rf .kube/config && 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 3094c13

Please sign in to comment.