소스 검색

fix duplicate constant

Matthew R Kasun 3 년 전
부모
커밋
71cc49e06d
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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 {