Package: wwwconfig-common Version: 0.0.43 Severity: important Tags: patch
pgsql-exec.sh has errors which break postgres configuration with wwwconfig-common. --- /usr/share/wwwconfig-common/pgsql-exec.sh~ 2005-03-22 17:21:56.000000000 +0100 +++ /usr/share/wwwconfig-common/pgsql-exec.sh 2005-08-11 17:27:35.000000000 +0200 @@ -27,18 +27,23 @@ . /usr/share/wwwconfig-common/pgsql.get +use_dbuser=false + if [ -z "$dbserver" ] ; then error="No database server specified." -elif [ ! -x $(which pgsql) ] ; then +elif [ ! -x $(which psql) ] ; then error="No pgsql client to execute, install the pgsql client package and run 'dpkg-reconfigure -plow packagename'." -elif ! eval $pgsqlcmd $systemdb -c "\"select usename from pg_shadow;\"" >/dev/null 2>&1 ; then +elif ! eval $pgsqlcmd -d $systemdb -c "\"select usename from pg_shadow;\"" >/dev/null 2>&1 ; then error="Error when trying to connect to the pgsql database. This error can occur if you have no database to connect to, or if the password was incorrect. use: dpkg-reconfigure -plow packagename to reconfigure." else log="${log}Executing command to pgsql." + + use_dbuser=true + if eval $pgsqlcmd -d $dbname < $sqlfile > /dev/null 2>&1 ; then status=exec else -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (99, 'testing'), (50, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.4.27-2-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]