Index: installers/debian/dotlrn/postinst
===================================================================
RCS file: /usr/local/cvsroot/installers/debian/dotlrn/postinst,v
diff -u -r1.3 -r1.4
--- installers/debian/dotlrn/postinst	14 Mar 2008 13:06:37 -0000	1.3
+++ installers/debian/dotlrn/postinst	26 Mar 2008 13:42:16 -0000	1.4
@@ -104,7 +104,8 @@
 	fi
 	
 	# Modify config.tcl with debconf values
-	sed -i "s/## Beginning of the conf changed by debconf ##/&\n    set db_host               $dbserver\n    set db_password           \"$dbpass\"\n    set db_port               \"5432\"\n    set db_user               $dbuser/" /etc/dotlrn/config.tcl
+	
+	sed -i "/^    set db_host/,/^    set db_user/d;s/## Beginning of the conf changed by debconf ##/&\n    set db_host               $dbserver\n    set db_password           \"$dbpass\"\n    set db_port               \"5432\"\n    set db_user               $dbuser/" /etc/dotlrn/config.tcl
 
 	# Install tsearch2
 	#. /usr/share/wwwconfig-common/pgsql-exec.sh