Package: davical
Version: 0.9.9.4-1
Severity: normal
Tags: patch
update-davical-database prompts several times for the DBA user
password, albeit the password is in /etc/davical/administration.yaml
Patch attached.
-- System Information:
Debian Release: 6.0
APT prefers stable
APT policy: (500, 'stable'), (400, 'testing'), (300, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- /usr/share/davical/dba/update-davical-database~ 2010-02-23 11:29:07.000000000 +0100
+++ /usr/share/davical/dba/update-davical-database 2011-03-24 17:35:21.000000000 +0100
@@ -322,7 +322,7 @@
push @psql_opts, "-p", "$dbport" if ( $dbport != 5432 );
push @psql_opts, "-U", $dbuser if ( $dbuser ne "" );
push @psql_opts, $dbname; # It seems that FreeBSD has a poorer argument parsing library so non-option arguments must be last
- $ENV{'PGPASS'} = $dbpass if ( $dbpass ne "" );
+ $ENV{'PGPASSWORD'} = $dbpass if ( $dbpass ne "" );
my $command = join ' ', @psql_opts;
$last_results = `$command 2>&1 1>/dev/null`;