Module: check_mk
Branch: master
Commit: 78c954bbdee47e526fcdc8578ec2e996fcdcbe30
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=78c954bbdee47e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue May 28 17:23:40 2013 +0200
Fix main .f12 file
---
.f12 | 24 ++++++++++++++----------
doc/.f12 | 2 +-
web/.f12 | 2 +-
3 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/.f12 b/.f12
index 9b77ef2..5d9c867 100644
--- a/.f12
+++ b/.f12
@@ -8,13 +8,17 @@ sed -e "s#@BINDIR@#/omd/sites/$SITE/bin#g" \
sudo mv /tmp/check_mk_templates.cfg /omd/sites/$SITE/etc/nagios/conf.d
-(cd doc ; bash .f12)
-(cd web ; bash .f12)
-(cd modules ; bash .f12)
-(cd checks ; bash .f12)
-(cd checkman ; bash .f12)
-(cd mkeventd ; bash .f12)
-(cd notifications ; bash .f12)
-(cd agents ; bash .f12)
-(cd livestatus ; bash .f12)
-(cd pnp-templates ; bash .f12)
+for dir in doc web modules checks checkman mkeventd notifications agents livestatus
pnp-templates
+do
+ echo "*******************************************************"
+ echo "VERZEICHNIS $dir **********************************"
+ echo "*******************************************************"
+ cd $dir
+ if bash .f12 ; then
+ echo "OK."
+ else
+ echo "FEHLER in doc. Abbruch"
+ exit 1
+ fi
+ cd ..
+done
diff --git a/doc/.f12 b/doc/.f12
index 096bb80..85605be 100644
--- a/doc/.f12
+++ b/doc/.f12
@@ -1 +1 @@
-sudo cp -pr * /omd/versions/default/share/doc/check_mk
+sudo cp -vpr * /omd/versions/default/share/doc/check_mk
diff --git a/web/.f12 b/web/.f12
index 59f0223..fccf129 100644
--- a/web/.f12
+++ b/web/.f12
@@ -6,4 +6,4 @@ if [ "$SITE" != - ] ; then
sudo omd restart $SITE apache
fi
echo "Using RemoteControl..."
-echo 'reload' | nc -w 0 localhost 32000
+echo 'reload' | nc -w 0 localhost 32000 || true