aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sitesummary.postinst')
-rw-r--r--debian/sitesummary.postinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
index aa08ae1..d828ab7 100644
--- a/debian/sitesummary.postinst
+++ b/debian/sitesummary.postinst
@@ -42,6 +42,18 @@ case "$1" in
mkdir -p $(dirname $config)
echo 'NAGIOSCFG="/etc/nagios3/sitesummary.cfg"' \
>> /etc/default/nagios3
+ if [ ! -f /var/lib/sitesummary/nagios-generated.cfg ] ; then
+ # Create dummy file to make sure nagios will start
+ # on first boot if sitesummary is installed using
+ # debian-installer
+ cat > /var/lib/sitesummary/nagios-generated.cfg <<EOF
+define host {
+ use server-host
+ host_name localhost
+ address localhost
+}
+EOF
+ fi
fi
fi