Browse Source

fix duplicate constant

Matthew R Kasun 3 years ago
parent
commit
71cc49e06d
2 changed files with 1 additions and 2 deletions
  1. 0 1
      netclient/daemon/macos.go
  2. 1 1
      netclient/daemon/systemd.go

+ 0 - 1
netclient/daemon/macos.go

@@ -10,7 +10,6 @@ import (
 )
 
 const MAC_SERVICE_NAME = "com.gravitl.netclient"
-const EXEC_DIR = "/sbin/"
 
 // SetupMacDaemon - Creates a daemon service from the netclient under LaunchAgents for MacOS
 func SetupMacDaemon(interval string) error {

+ 1 - 1
netclient/daemon/systemd.go

@@ -10,7 +10,7 @@ import (
 	"github.com/gravitl/netmaker/netclient/ncutils"
 )
 
-const EXEC_DIR = "/usr/sbin/"
+const EXEC_DIR = "/sbin/"
 
 // SetupSystemDDaemon - sets system daemon for supported machines
 func SetupSystemDDaemon(interval string) error {