updated logic for join/leave network

This commit is contained in:
Matthew R. Kasun
2022-07-14 13:48:11 -04:00
parent aa9be268f3
commit df0e882a7e
5 changed files with 28 additions and 23 deletions

View File

@@ -83,6 +83,7 @@ func RestartSystemD() {
// CleanupLinux - cleans up neclient configs
func CleanupLinux() {
RemoveSystemDServices()
if err := os.RemoveAll(ncutils.GetNetclientPath()); err != nil {
logger.Log(1, "Removing netclient configs: ", err.Error())
}