From d3ae73ecfab48eea121b91c6d37684d79061a19f Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 13 Jun 2008 15:06:53 +0000 Subject: * Make sure to read /etc/environment in init.d/sitesummary-client script, to activate the common http proxy settings. --- debian/changelog | 7 +++++++ debian/sitesummary-client.init | 6 ++++++ 2 files changed, 13 insertions(+) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index c36557d..6fc9b2b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +sitesummary (0.0.42) UNRELEASED; urgency=low + + * Make sure to read /etc/environment in init.d/sitesummary-client + script, to activate the common http proxy settings. + + -- Petter Reinholdtsen Sat, 7 Jun 2008 12:50:17 +0200 + sitesummary (0.0.41) unstable; urgency=low * Accept nagios3 clients as nagios clients. diff --git a/debian/sitesummary-client.init b/debian/sitesummary-client.init index c9f2dac..30108d1 100644 --- a/debian/sitesummary-client.init +++ b/debian/sitesummary-client.init @@ -14,6 +14,12 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin CLIENT=/usr/sbin/sitesummary-client REPORTDELAY=300 +# Use proxy setting if present +if [ -f /etc/environment ] ; then + . /etc/environment + export http_proxy +fi + [ -f /etc/default/sitesummary-client ] && . /etc/default/sitesummary-client test -x $CLIENT || exit 0 -- cgit v1.2.3