Module: check_mk
Branch: master
Commit: 9c212bb632f5e4d65d9217a78c3c3182f47d62e3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c212bb632f5e4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 16 11:00:32 2015 +0200
.f12 script install windows agents to site now
Conflicts:
agents/windows/.f12
---
agents/windows/.f12 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/agents/windows/.f12 b/agents/windows/.f12
index 8f58e6d..b5b5773 100644
--- a/agents/windows/.f12
+++ b/agents/windows/.f12
@@ -1 +1,5 @@
+SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+
make
+sudo rsync -varx *.exe /omd/sites/$SITE/share/check_mk/agents/windows/