Module: check_mk
Branch: master
Commit: 536ef4fbc9271950b544127e683de9fade01eaa5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=536ef4fbc92719…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Feb 17 12:21:16 2013 +0100
Fixed .f12 compile helpers
---
agents/.f12 | 3 ++-
checks/.f12 | 3 ++-
modules/.f12 | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/agents/.f12 b/agents/.f12
index d1f6a26..4c32b21 100644
--- a/agents/.f12
+++ b/agents/.f12
@@ -1,4 +1,5 @@
-sudo cp -r * /omd/versions/default/share/check_mk/agents/
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+sudo cp -r * /omd/sites/$SITE/share/check_mk/agents/
if [ -e /etc/check_mk ]
then
sudo install -m 644 logwatch.cfg /etc/check_mk/
diff --git a/checks/.f12 b/checks/.f12
index 1aedc3d..959cb4c 100644
--- a/checks/.f12
+++ b/checks/.f12
@@ -1,2 +1,3 @@
-sudo install -m 644 * /omd/versions/default/share/check_mk/checks
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+sudo install -m 644 * /omd/sites/$SITE/share/check_mk/checks
diff --git a/modules/.f12 b/modules/.f12
index 98c404c..ac2a73c 100644
--- a/modules/.f12
+++ b/modules/.f12
@@ -1 +1,2 @@
-sudo cp -v *.py /omd/versions/default/share/check_mk/modules/
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+sudo cp -v *.py /omd/sites/$SITE/share/check_mk/modules/