register now working

This commit is contained in:
afeiszli
2021-06-01 12:23:05 -04:00
parent 4f32abf096
commit a681750195
57 changed files with 572 additions and 278 deletions

View File

@@ -319,7 +319,9 @@ func LeaveNetwork(network string) error {
if err != nil {
log.Printf("Unable to wipe local config: %v", err)
}
err = local.RemoveSystemDServices(network)
if cfg.Daemon != "off" {
err = local.RemoveSystemDServices(network)
}
return err
}