Module: check_mk
Branch: master
Commit: 7a8cd099df360e5de78d7bd48017a71b1116cc68
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a8cd099df360e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 14 17:14:14 2012 +0200
compile helper: do not restart SITE if it is set to -
---
web/.f12 | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/web/.f12 b/web/.f12
index 2b960e5..2c8d957 100644
--- a/web/.f12
+++ b/web/.f12
@@ -3,4 +3,6 @@ SITE=${SITE:-$(omd sites --bare | head -n 1)}
C=$(sudo cp --preserve=mode -rv * /omd/versions/default/share/check_mk/web/ | wc -l)
#C=$(sudo cp --preserve=mode -rv htdocs/*.{css,py}
/omd/versions/default/share/check_mk/web/htdocs/ | wc -l)
echo "$C files copied"
-sudo omd restart $SITE apache
+if [ "$SITE" != - ] ; then
+ sudo omd restart $SITE apache
+fi