Licenses: Updated the list of licenses and added a PDF containing all license texts
[check_mk.git] / cmk_base / .f12
blob41b925ac984ebd9cb4c06686df385d6933a0be11
1 #!/bin/bash
2 set -e
4 SITE=${SITE:-$(cat ../.site 2>/dev/null || true)}
5 SITE=${SITE:-$(omd sites --bare | head -n 1)}
6 ROOT=/omd/sites/$SITE
8 echo "Update site $SITE..."
10 echo "Copy CRE files..."
11 sudo rsync \
12 --exclude=cee \
13 --exclude=cee.py \
14 -a * $ROOT/lib/python/cmk_base/
15 sudo pycompile -q $ROOT/lib/python/cmk_base/cmk_base
17 # Also deploy all other directories of same type
18 if [ ${ALL_EDITIONS:-1} != 0 ]; then
19 for WHAT in enterprise managed; do
20 if [ -e ../$WHAT/cmk_base/.f12 ]; then
21 (cd ../$WHAT/cmk_base ; ONLY_COPY=1 ALL_EDITIONS=0 bash .f12)
23 done