Module: check_mk
Branch: master
Commit: d7d09975581e46ff45cd3c85cc994dc2f0a472fc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d7d09975581e46…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 29 09:06:04 2014 +0200
Fixed .f12 compile helper of doc directory
---
doc/.f12 | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/doc/.f12 b/doc/.f12
index 85605be..4a98040 100644
--- a/doc/.f12
+++ b/doc/.f12
@@ -1 +1,10 @@
-sudo cp -vpr * /omd/versions/default/share/doc/check_mk
+#!/bin/bash
+SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+echo "TARGET: /omd/sites/$SITE/share/check_mk/checks"
+sudo rsync -ar --delete-after ./ /omd/sites/$SITE/share/doc/check_mk/
+sudo install -m 755 treasures/mknotifyd /omd/sites/$SITE/bin
+. /omd/sites/$SITE/etc/omd/site.conf
+if [ "$CONFIG_MKNOTIFYD" = on ] ; then
+ sudo su - $SITE -c "omd restart mknotifyd"
+fi