systemd Service安装失败时直接返回

This commit is contained in:
GoEdgeLab
2021-01-26 21:32:15 +08:00
parent d58cbabbdd
commit e6367acf36

View File

@@ -63,6 +63,7 @@ func main() {
err := nodes.NewAPINode().InstallSystemService()
if err != nil {
fmt.Println("[ERROR]install failed: " + err.Error())
return
}
fmt.Println("done")
})