Module: check_mk
Branch: master
Commit: 294df85c237273ffde5b04290e150ed826fbd110
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=294df85c237273…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sat Jun 10 21:30:24 2017 +0200
web .f12 files now deploy all web files
---
web/.f12 | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/web/.f12 b/web/.f12
index f37edbd..b10da3e 100644
--- a/web/.f12
+++ b/web/.f12
@@ -1,12 +1,21 @@
#!/bin/bash
SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
SITE=${SITE:-$(omd sites --bare | head -n 1)}
+
+echo "Copy CRE files..."
sudo rsync \
--exclude "*cmc.py" \
--exclude "*omd_configuration.py" \
- -varx htdocs plugins /omd/sites/$SITE/share/check_mk/web/
-# --delete \
-echo "$C files copied"
+ -arx htdocs plugins /omd/sites/$SITE/share/check_mk/web/
+
+# Also deploy all other directories of same type
+if [ ${ALL_EDITIONS:-1} != 0 ]; then
+ for WHAT in enterprise managed; do
+ if [ -e ../$WHAT/web/.f12 ]; then
+ (cd ../$WHAT/web ; ONLY_COPY=1 ALL_EDITIONS=0 bash .f12)
+ fi
+ done
+fi
if [ -z $ONLY_COPY ]; then
if [ "$SITE" != - ] ; then