Skip to content

Commit

Permalink
缺陷: 最新版本sealos init 安装k8s 失败 (#778)
Browse files Browse the repository at this point in the history
Fixes #691
  • Loading branch information
ldseraph authored Dec 29, 2021
1 parent 791cbfd commit 2b45783
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (s *SealosInstaller) appendAPIServer() error {
etcHostMap := fmt.Sprintf("%s %s", IPFormat(s.Masters[0]), APIServer)
file, err := os.OpenFile(etcHostPath, os.O_RDWR|os.O_APPEND, 0666)
if err != nil {
logger.Error("open %s file error %s", etcHostPath, err)
os.Exit(1)
}
defer file.Close()
Expand Down

0 comments on commit 2b45783

Please sign in to comment.