Module: check_mk
Branch: master
Commit: 4d1368ff3d39e3f64eff81d1533d67d62537dad6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4d1368ff3d39e3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 14 12:55:56 2016 +0100
Fixed .f12 of livestatus/api/python
Change-Id: Icf02ae126e84f1981d060ce80ed3d597fad9b348
---
livestatus/api/python/.f12 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/livestatus/api/python/.f12 b/livestatus/api/python/.f12
index 89826a3..74b28b5 100644
--- a/livestatus/api/python/.f12
+++ b/livestatus/api/python/.f12
@@ -1,5 +1,10 @@
#!/bin/bash
-SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
+SITE=${SITE:-$(cat ../../../.site 2>/dev/null || true)}
SITE=${SITE:-$(omd sites --bare | head -n 1)}
sudo rsync livestatus.py /omd/sites/$SITE/lib/python/
+if [ -z $ONLY_COPY ]; then
+ if [ "$SITE" != - ] ; then
+ sudo omd restart $SITE apache
+ fi
+fi