fixing model

This commit is contained in:
afeiszli
2021-09-18 11:01:34 -04:00
parent 74b15a6a13
commit b828f7b6d9
8 changed files with 48 additions and 21 deletions

View File

@@ -37,7 +37,7 @@ func Join(cfg config.ClientConfig, privateKey string) error {
}
}
if cfg.Daemon != "off" {
if !netclientutils.IsWindows() {
if netclientutils.IsLinux() {
err = local.RemoveSystemDServices(cfg.Network)
}
if err != nil {
@@ -51,6 +51,8 @@ func Join(cfg config.ClientConfig, privateKey string) error {
if cfg.Daemon != "off" {
if netclientutils.IsWindows() {
err = local.CreateAndRunWindowsDaemon()
} else if netclientutils.IsMac() {
err = local.CreateAndRunMacDaemon()
} else {
err = functions.InstallDaemon(cfg)
}