Module: check_mk
Branch: master
Commit: e2d3a3766109335426224bb5b09a341d4fd13ab2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e2d3a376610933…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 1 08:23:43 2018 +0200
Add .f12 to deploy and restart mkeventd
Change-Id: I83d833ca9e590f1170d7911bf8b62e404674bc2d
---
cmk/ec/.f12 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/cmk/ec/.f12 b/cmk/ec/.f12
new file mode 100644
index 0000000..3384149
--- /dev/null
+++ b/cmk/ec/.f12
@@ -0,0 +1,12 @@
+#!/bin/bash
+set -e
+
+SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+ROOT=/omd/sites/$SITE
+
+(cd .. ; bash .f12)
+
+if [ -z $ONLY_COPY ]; then
+ sudo omd restart $SITE mkeventd
+fi