diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-18 17:27:22 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-18 17:27:22 +0000 |
commit | 552bd3e017ba3a635ef99f98b4a312c183d41ab6 (patch) | |
tree | e48747e038c98d76e2fe7ef5049a361f3288ea64 /debian/sitesummary-client.postinst | |
parent | 09482b684dc46ac03614c07a993a9d7832e2e0da (diff) | |
download | sitesummary-552bd3e017ba3a635ef99f98b4a312c183d41ab6.tar.gz sitesummary-552bd3e017ba3a635ef99f98b4a312c183d41ab6.tar.bz2 sitesummary-552bd3e017ba3a635ef99f98b4a312c183d41ab6.tar.xz |
Make it possible to preseed the nagios server for the nrpe configuration.
Diffstat (limited to 'debian/sitesummary-client.postinst')
-rw-r--r-- | debian/sitesummary-client.postinst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/sitesummary-client.postinst b/debian/sitesummary-client.postinst index ae1a242..0ad7cc0 100644 --- a/debian/sitesummary-client.postinst +++ b/debian/sitesummary-client.postinst @@ -88,6 +88,10 @@ if [ ! -f $config ] ; then dont_blame_nrpe=1 include=/etc/nagios/sitesummary-nrpe-commands.cfg EOF + db_get sitesummary-client/nagios-server + if [ "$RET" ] ; then + echo "allowed_hosts=$RET" >> $config + fi fi fi |