[Rt-commit] rt branch, 4.4-trunk, updated. rt-4.4.2-237-g7fd9a0ee8
? sunnavy
sunnavy at bestpractical.com
Thu May 10 17:49:09 EDT 2018
The branch, 4.4-trunk has been updated
via 7fd9a0ee8295a5940a80ee8294663247ad466717 (commit)
via c52b168a1e0a96b260e4ab50584efb3ffb57aec2 (commit)
from 1bc5757b203972d59acd0f3983c890aeca0599f7 (commit)
Summary of changes:
sbin/rt-setup-fulltext-index.in | 12 ++++++++++++
1 file changed, 12 insertions(+)
- Log -----------------------------------------------------------------
commit c52b168a1e0a96b260e4ab50584efb3ffb57aec2
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date: Mon Apr 9 16:15:29 2018 -0400
Allow rt-setup-fulltext-index to prompt for dba password
diff --git a/sbin/rt-setup-fulltext-index.in b/sbin/rt-setup-fulltext-index.in
index 03863fbfa..4388ace23 100644
--- a/sbin/rt-setup-fulltext-index.in
+++ b/sbin/rt-setup-fulltext-index.in
@@ -49,6 +49,7 @@
use strict;
use warnings;
no warnings 'once';
+use Term::ReadKey;
# fix lib paths, some may be relative
BEGIN { # BEGIN RT CMD BOILERPLATE
@@ -650,6 +651,17 @@ sub dba_handle {
$ENV{'NLS_NCHAR'} = "AL32UTF8";
}
my $dsn = do { my $h = new RT::Handle; $h->BuildDSN; $h->DSN };
+ my $password;
+ if ( defined $DB{'admin_password'} || defined $ENV{'RT_DBA_PASSWORD'} ) {
+ $password = $DB{'admin_password'} // $ENV{'RT_DBA_PASSWORD'};
+ } else {
+ print "Please enter $DB{'type'} admin password: ";
+ ReadMode('noecho');
+ chomp($password = ReadLine(0));
+ ReadMode('normal');
+ print "\n";
+ }
+ $DB{'admin_password'} = $password;
my $dbh = DBI->connect(
$dsn, $DB{admin}, $DB{admin_password},
{ RaiseError => 1, PrintError => 1 },
commit 7fd9a0ee8295a5940a80ee8294663247ad466717
Merge: 1bc5757b2 c52b168a1
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri May 11 05:43:04 2018 +0800
Merge branch '4.4/prompt-for-password-fulltext-index' into 4.4-trunk
-----------------------------------------------------------------------
More information about the rt-commit
mailing list