From a0d61b69a3965741370f1fcd9232aa3d007133d0 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sat, 7 Oct 2006 17:41:28 +0000 Subject: Make sure the debconf value only is set in sitesummary-client.config when local configuration exist. --- debian/changelog | 10 +++++++--- debian/sitesummary-client.config | 9 ++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5045149..5ef8bec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,13 @@ sitesummary (0.0.15) unstable; urgency=low [ Steffen Joeris ] - * Remove code to set the debconf value explicitely in the - sitesummary-client.config script to avoid possible conflict - (Closes: #391593) + * Remove code to set the debconf value explicitely in the + sitesummary-client.config script to avoid possible conflict + (Closes: #391593) + + [ Petter Reinholdtsen ] + * Make sure the debconf value only is set in sitesummary-client.config + when local configuration exist. -- Steffen Joeris Sun, 8 Oct 2006 00:06:51 +1000 diff --git a/debian/sitesummary-client.config b/debian/sitesummary-client.config index e6f95b0..8ecb064 100644 --- a/debian/sitesummary-client.config +++ b/debian/sitesummary-client.config @@ -3,6 +3,8 @@ # if we do not have debconf, we just skip this . /usr/share/debconf/confmodule || exit 0 +updatedebconf=no + # Read the package default, need to match the code in sitesummary-client [ -f /usr/share/sitesummary/sitesummary-client.conf ] && \ . /usr/share/sitesummary/sitesummary-client.conf @@ -12,10 +14,15 @@ for confdir in \ do [ -d $confdir ] || continue for config in $confdir/* ; do - [ -f $config ] && . $config + if [ -f $config ] ;then + . $config + updatedebconf=yes + fi done done +[ yes = "$updatedebconf" ] && db_set sitesummary-client/collector_url "$serverurls" + db_input medium sitesummary-client/collector_url || true db_go || true -- cgit v1.2.3