Hello

I do not fully understand what you want to be done here...

Regards,

// Ola

On Thu, Aug 11, 2005 at 05:31:42PM +0200, Christoph Martin wrote:
> 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
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to