Hi

On Mon, Mar 27, 2006 at 05:10:58AM +1100, Anand Kumria wrote:
> Package: wwwconfig-common
> Version: 0.0.44
> Severity: normal
> 
> Hi,
> 
> While debugging a failed installation of Drupal I had to investigate
> pgsql-exec.sh
> 
> Here are the relevant line (I had modified pgsql-exec.sh to not
> redirect /dev/null):
> 
> +++ eval psql -U drupal ''\''-d'\''' ''\''drupal'\''' ''\''-f'\'''
> ''\''/usr/share/drupal/database/database.pgsql'\'''
> ++++ psql -U drupal -d drupal -f /usr/share/drupal/database/database.pgsql
> psql: FATAL:  Ident authentication failed for user "drupal"
> +++ rm -rf /tmp/tmp.r2htGb
> +++ HOME=/home/anand
> ++ status=exec
> 
> psql has clearly failed, yet ther script has returned 'exec'.
> 
> If you try this manually:
> 
> [EMAIL PROTECTED]:~$ psql -U drupal -d drupal -f 
> /usr/share/drupal/database/database.pgsql
> psql: FATAL:  Ident authentication failed for user "drupal"
> [EMAIL PROTECTED]:~$ echo $?
> 2
> 
> So, pgsql-exec should be checking the return code and indicating
> failure in this case.

I agree. In what way do you think it should indicate failure?

Patch is of course welcome.

Regards,

// Ola

> Thanks,
> Anand
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers testing
>   APT policy: (650, 'testing'), (600, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.15-1-686
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> 
> -- 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