cleaning up old grpc functionality

This commit is contained in:
afeiszli
2021-08-09 17:42:32 -04:00
parent 70493754b2
commit 7e8af20b64
5 changed files with 3 additions and 124 deletions

View File

@@ -303,22 +303,6 @@ func WipeLocal(network string) error {
}
func WipeGRPCClient() error {
home := "/etc/netclient"
_ = os.Remove(home + "/netconfig-global-001")
ipExec, err := exec.LookPath("ip")
cmdIPLinkDel := &exec.Cmd{
Path: ipExec,
Args: []string{ipExec, "link", "del", "grpc-wg-001"},
Stdout: os.Stdout,
Stderr: os.Stdout,
}
err = cmdIPLinkDel.Run()
return err
}
func HasNetwork(network string) bool {
return FileExists("/etc/systemd/system/netclient-"+network+".timer") ||