|
@@ -97,6 +97,13 @@ WantedBy=timers.target
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func CleanupLinux() {
|
|
|
|
+ err := os.RemoveAll(ncutils.GetNetclientPath())
|
|
|
|
+ if err != nil {
|
|
|
|
+ ncutils.PrintLog("Removing netclient binary: "+err.Error(), 1)
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
// RemoveSystemDServices - removes the systemd services on a machine
|
|
// RemoveSystemDServices - removes the systemd services on a machine
|
|
func RemoveSystemDServices(network string) error {
|
|
func RemoveSystemDServices(network string) error {
|
|
//sysExec, err := exec.LookPath("systemctl")
|
|
//sysExec, err := exec.LookPath("systemctl")
|