4 SITE
=${SITE:-$(cat ../.site 2>/dev/null || true)}
5 SITE
=${SITE:-$(omd sites --bare | head -n 1)}
8 echo "Updating compiled JS/CSS files..."
10 web
/htdocs
/js
/main_min.js \
11 web
/htdocs
/js
/mobile_min.js \
12 web
/htdocs
/js
/side_min.js \
13 web
/htdocs
/themes
/facelift
/theme.css \
14 web
/htdocs
/themes
/classic
/theme.css
16 echo "Update site $SITE..."
18 echo "Copy CRE files..."
21 -arx app htdocs
$ROOT/share
/check_mk
/web
/
23 # Also deploy all other directories of same type
24 if [ ${ALL_EDITIONS:-1} != 0 ]; then
25 for WHAT
in enterprise managed
; do
26 if [ -e ..
/$WHAT/web
/.f12
]; then
27 (cd ..
/$WHAT/web
; ONLY_COPY
=1 ALL_EDITIONS
=0 bash .f12
)
32 if [ "$KILL_SITE_APACHE" = "1" ]; then
33 echo "KILLING site apache of $SITE"
34 sudo killall
-9 -u $SITE apache2
37 if [ -z $ONLY_COPY ]; then
38 if [ "$SITE" != - ] ; then
39 sudo omd restart
$SITE apache
43 # Gecache PNP-Schablonen entfernen
44 sudo
rm -f $ROOT/var
/check_mk
/pnp_template_cache
/*