systemd Service安装失败时直接返回

This commit is contained in:
刘祥超
2021-01-26 21:32:03 +08:00
parent b9af3d4757
commit 0d5fc7ad85

View File

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