Module: check_mk
Branch: master
Commit: 27e8039a6e5e251c5856feeba5e04aa0c7270eb0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=27e8039a6e5e25…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Mar 18 14:36:08 2018 +0100
cmk_base .f12 deploy all editions by default (just like web .f12)
Change-Id: I2983998a23e86dde8bddf8b4a1426c9cc38fb6c7
---
cmk_base/.f12 | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/cmk_base/.f12 b/cmk_base/.f12
index 53e74ff..41b925a 100755
--- a/cmk_base/.f12
+++ b/cmk_base/.f12
@@ -5,9 +5,20 @@ SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
SITE=${SITE:-$(omd sites --bare | head -n 1)}
ROOT=/omd/sites/$SITE
+echo "Update site $SITE..."
+
+echo "Copy CRE files..."
sudo rsync \
--exclude=cee \
--exclude=cee.py \
-a * $ROOT/lib/python/cmk_base/
sudo pycompile -q $ROOT/lib/python/cmk_base/cmk_base
-echo "Installed to $ROOT/lib/python/cmk_base/"
+
+# Also deploy all other directories of same type
+if [ ${ALL_EDITIONS:-1} != 0 ]; then
+ for WHAT in enterprise managed; do
+ if [ -e ../$WHAT/cmk_base/.f12 ]; then
+ (cd ../$WHAT/cmk_base ; ONLY_COPY=1 ALL_EDITIONS=0 bash .f12)
+ fi
+ done
+fi