Index: installers/debian/dotlrn/TODO =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/Attic/TODO,v diff -u -N -r1.2 -r1.3 --- installers/debian/dotlrn/TODO 13 Mar 2008 13:22:13 -0000 1.2 +++ installers/debian/dotlrn/TODO 14 Mar 2008 13:06:37 -0000 1.3 @@ -1,4 +1,4 @@ -[ ] Modification of the config.tcl according to user and database given by the user on the install. +[X] Modification of the config.tcl according to user and database given by the user on the install. [X] Modification of the config.tcl using the FHS routes. [X] Set permissions for user www-data. [ ] Load tsearch sql. Index: installers/debian/dotlrn/postinst =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/postinst,v diff -u -N -r1.2 -r1.3 --- installers/debian/dotlrn/postinst 13 Mar 2008 13:22:13 -0000 1.2 +++ installers/debian/dotlrn/postinst 14 Mar 2008 13:06:37 -0000 1.3 @@ -102,6 +102,9 @@ su - $dbadmin -C createlang plpgsql $dbname 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 # Install tsearch2 #. /usr/share/wwwconfig-common/pgsql-exec.sh Index: installers/debian/dotlrn/patches/config.dpatch =================================================================== RCS file: /usr/local/cvsroot/installers/debian/dotlrn/patches/config.dpatch,v diff -u -N -r1.1 -r1.2 --- installers/debian/dotlrn/patches/config.dpatch 13 Mar 2008 13:22:13 -0000 1.1 +++ installers/debian/dotlrn/patches/config.dpatch 14 Mar 2008 13:06:37 -0000 1.2 @@ -6,8 +6,8 @@ @DPATCH@ diff -urNad dotlrn-2.3.1~/etc/config.tcl dotlrn-2.3.1/etc/config.tcl ---- dotlrn-2.3.1~/etc/config.tcl 2008-03-13 13:27:45.000000000 +0100 -+++ dotlrn-2.3.1/etc/config.tcl 2008-03-13 13:29:38.000000000 +0100 +--- dotlrn-2.3.1~/etc/config.tcl 2008-03-14 12:15:20.000000000 +0100 ++++ dotlrn-2.3.1/etc/config.tcl 2008-03-14 12:27:20.000000000 +0100 @@ -19,17 +19,16 @@ # setting the address to 0.0.0.0 means aolserver listens on all interfaces set hostname [ns_info hostname] @@ -31,12 +31,17 @@ #--------------------------------------------------------------------- # which database do you want? postgres or oracle set database postgres -@@ -41,15 +40,15 @@ +@@ -39,17 +38,18 @@ + if { $database == "oracle" } { + set db_password "mysitepassword" } else { - set db_host localhost - set db_port "" +- set db_host localhost +- set db_port "" - set db_user $server -+ set db_user www-data ++ ++## Beginning of the conf changed by debconf ## ++############################################## ++ } #--------------------------------------------------------------------- @@ -50,7 +55,7 @@ set max_file_upload_mb 20 -@@ -101,7 +100,7 @@ +@@ -101,7 +101,7 @@ ns_section ns/threads ns_param mutexmeter true ;# measure lock contention # The per-thread stack size must be a multiple of 8k for AOLServer to run under MacOS X @@ -59,7 +64,7 @@ # # MIME types. -@@ -660,12 +659,12 @@ +@@ -660,12 +660,12 @@ } # nsthread library which should become standard in 5.3 @@ -77,8 +82,8 @@ \ No newline at end of file +} diff -urNad dotlrn-2.3.1~/etc/daemontools/run dotlrn-2.3.1/etc/daemontools/run ---- dotlrn-2.3.1~/etc/daemontools/run 2008-03-13 13:27:45.000000000 +0100 -+++ dotlrn-2.3.1/etc/daemontools/run 2008-03-13 13:28:54.000000000 +0100 +--- dotlrn-2.3.1~/etc/daemontools/run 2008-03-14 12:15:20.000000000 +0100 ++++ dotlrn-2.3.1/etc/daemontools/run 2008-03-14 12:23:00.000000000 +0100 @@ -9,7 +9,7 @@ # see http://openacs.org/forums/message-view?message_id=176100 sleep 4