4 SITE
=${SITE:-$(cat ../.site 2>/dev/null || true)}
5 SITE
=${SITE:-$(omd sites --bare | head -n 1)}
8 sudo rsync
--delete -varx .
/ $ROOT/share
/check_mk
/pnp-templates
/
10 if [ -z $ONLY_COPY ]; then
11 # do nc to port 32000 only if there is someone listening
12 # (otherwise complete f12 script breaks if no listener on 32000)
13 if [ $
(nmap
-PN -p 32000 localhost |
egrep "32000.*open" |
wc -l) -gt 0 ]
15 echo 'location.reload();' | nc
-w 0 localhost
32000