Package: zabbix-agent
Severity: normal

As discussed on IRC, here's a patch that fixes #408489 without useless
use of ucf.  It should work with the postinst script of the previous
version, and the same change should be made in in the other config
script.  It's untested.

--- zabbix-1.1.4-6/debian/zabbix-agent.config   2007-01-26 13:51:59.000000000 
+0100
+++ zabbix-1.1.4/debian/zabbix-agent.config     2007-01-26 14:07:24.000000000 
+0100
@@ -2,6 +2,12 @@
 . /usr/share/debconf/confmodule
 db_version 2.0 || [ $? -lt 30 ]
 
+CONFFILE_DEST1="/etc/zabbix/zabbix_agentd.conf"
+
+server=`sed -n '/^Server/ {s/^Server=\([^#]*\)/\1/;p}' $CONFFILE_DEST1`
+
+db_set zabbix-agent/server $server || true
+
 db_input medium zabbix-agent/server || true
 db_go || true
 


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (99, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.17-2-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

Reply via email to