Module: check_mk
Branch: master
Commit: 9df588c245253b2292bc786adb9f6ed972743d90
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9df588c245253b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jun 27 10:15:33 2014 +0200
Fixed one .f12 helper file
---
mkeventd/.f12 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mkeventd/.f12 b/mkeventd/.f12
index 8074b44..969e145 100644
--- a/mkeventd/.f12
+++ b/mkeventd/.f12
@@ -1,6 +1,6 @@
#!/bin/bash
-SITE=${SITE:-$(cat ../.site)}
-SITE=${SITE:-$(omd sites --bare | sort | head -n 1)}
+SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
OMD_ROOT=/omd/sites/${SITE}
for dir in web checks pnp-templates