#!/bin/sh set -e # Source debconf library. . /usr/share/debconf/confmodule test_nagios() { if grep -q '^NAGIOSCFG="/etc/icinga/sitesummary.cfg"$' "$config"; then : else db_get sitesummary/enable-nagios-config if [ true = "$RET" ] ; then mkdir -p $(dirname $config) echo 'NAGIOSCFG="/etc/icinga/sitesummary.cfg"' \ >> /etc/default/icinga 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 <