From d8da1316230a34678ce57dfe5a3e32624aa6a406 Mon Sep 17 00:00:00 2001 From: redanthrax Date: Wed, 22 Jun 2022 13:03:45 -0700 Subject: [PATCH 1/2] added unix support/tested builds --- agent/{agent_linux.go => agent_unix.go} | 11 +---------- agent/{install_linux.go => install_unix.go} | 2 ++ 2 files changed, 3 insertions(+), 10 deletions(-) rename agent/{agent_linux.go => agent_unix.go} (97%) rename agent/{install_linux.go => install_unix.go} (98%) diff --git a/agent/agent_linux.go b/agent/agent_unix.go similarity index 97% rename from agent/agent_linux.go rename to agent/agent_unix.go index 1027344..3ae5475 100644 --- a/agent/agent_linux.go +++ b/agent/agent_unix.go @@ -1,13 +1,4 @@ -/* -Copyright 2022 AmidaWare LLC. - -Licensed under the Tactical RMM License Version 1.0 (the “License”). -You may only use the Licensed Software in accordance with the License. -A copy of the License is available at: - -https://license.tacticalrmm.com - -*/ +// +build !windows package agent diff --git a/agent/install_linux.go b/agent/install_unix.go similarity index 98% rename from agent/install_linux.go rename to agent/install_unix.go index b9debcc..3168f82 100644 --- a/agent/install_linux.go +++ b/agent/install_unix.go @@ -1,3 +1,5 @@ +// +build !windows + /* Copyright 2022 AmidaWare LLC. From d3753535d53a8cd4050f3eacdc53b314f116a70b Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 22 Jun 2022 20:20:19 +0000 Subject: [PATCH 2/2] add back license --- agent/agent_unix.go | 12 ++++++++++++ agent/install_unix.go | 1 + 2 files changed, 13 insertions(+) diff --git a/agent/agent_unix.go b/agent/agent_unix.go index 3ae5475..ddd5bac 100644 --- a/agent/agent_unix.go +++ b/agent/agent_unix.go @@ -1,5 +1,17 @@ +//go:build !windows // +build !windows +/* +Copyright 2022 AmidaWare LLC. + +Licensed under the Tactical RMM License Version 1.0 (the “License”). +You may only use the Licensed Software in accordance with the License. +A copy of the License is available at: + +https://license.tacticalrmm.com + +*/ + package agent import ( diff --git a/agent/install_unix.go b/agent/install_unix.go index 3168f82..cf6a068 100644 --- a/agent/install_unix.go +++ b/agent/install_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows /*