Module: check_mk
Branch: master
Commit: 7d58f44901943802ed44bfbdfa1eb8ce712f4e09
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7d58f449019438…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 1 23:12:42 2013 +0200
Fixed two .f12 compile helpers to use .site
---
.f12 | 2 ++
web/.f12 | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.f12 b/.f12
index 6f787eb..474b3f4 100644
--- a/.f12
+++ b/.f12
@@ -1,3 +1,5 @@
+#!/bin/bash
+SITE=${SITE:-$(cat .site || true)}
SITE=${SITE:-$(omd sites --bare | head -n 1)}
sed -e "s#@BINDIR@#/omd/sites/$SITE/bin#g" \
-e "s#@VARDIR@#/omd/sites/$SITE/var/check_mk#g" \
diff --git a/web/.f12 b/web/.f12
index aaee97d..546ee53 100644
--- a/web/.f12
+++ b/web/.f12
@@ -1,5 +1,5 @@
#!/bin/bash
-SITE=${SITE:-$(cat ../.site)}
+SITE=${SITE:-$(cat ../.site || true)}
SITE=${SITE:-$(omd sites --bare | head -n 1)}
sudo rsync --exclude=defaults.py --exclude "*mkevent*" --delete -varx htdocs
plugins /omd/sites/$SITE/share/check_mk/web/
echo "$C files copied"