summaryrefslogtreecommitdiff
path: root/rt/sbin
diff options
context:
space:
mode:
authorivan <ivan>2010-01-09 22:48:46 +0000
committerivan <ivan>2010-01-09 22:48:46 +0000
commit904132fd7c5e470b26fd9a2b1cbc4ff1ba114c66 (patch)
tree3e91f94cbc8527c9a83d5e52433c195e9b98c11f /rt/sbin
parent7e0aae7956b9f07d88295a350e560978032847fd (diff)
fixup initial RT setup for 3.8
Diffstat (limited to 'rt/sbin')
-rw-r--r--rt/sbin/rt-setup-database.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/rt/sbin/rt-setup-database.in b/rt/sbin/rt-setup-database.in
index a51076fee..ea9b99ba0 100644
--- a/rt/sbin/rt-setup-database.in
+++ b/rt/sbin/rt-setup-database.in
@@ -150,7 +150,9 @@ if ( $db_type eq 'SQLite' && !File::Spec->file_name_is_absolute($db_name) ) {
}
my $dba_user = $args{'dba'} || $ENV{'RT_DBA_USER'} || $db_user || '';
-my $dba_pass = $args{'dba-password'} || $ENV{'RT_DBA_PASSWORD'};
+my $dba_pass = exists($args{'dba-password'})
+ ? $args{'dba-password'}
+ : $ENV{'RT_DBA_PASSWORD'};
if ( !$args{force} && ( !defined $dba_pass || $args{'prompt-for-dba-password'} ) ) {
$dba_pass = get_dba_password();