GUI CSS: Removed snapin styles from py modules and added a _snapins.scss for the...
[check_mk.git] / web / .f12
blob84102ca08af195102beb95319a88c82978df9476
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 "Updating compiled JS/CSS files..."
9 make -C .. \
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..."
19 sudo rsync \
20 --exclude "*cmc.py" \
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)
29 done
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/*