Skip to content

Commit

Permalink
bugfix: remove the single-quotes around all inclusions of EHIVE_TMP_P…
Browse files Browse the repository at this point in the history
…ASSWORD_

The regexp had not been updated to match the new way of setting the password
for MySQL databases. Also, it never worked for PostgreSQL :/
  • Loading branch information
muffato committed Jan 4, 2017
1 parent ad5c1f7 commit 89fef56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/Hive/RunnableDB/DbCmd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ sub fetch_input {

if ($need_a_shell) {
my ($join_needed, $flat_cmd) = join_command_args(\@cmd);
$flat_cmd =~ s/ '(-p\$EHIVE_TMP_PASSWORD_\d+)' / $1 /g;
$flat_cmd =~ s/ '(\S*\$EHIVE_TMP_PASSWORD_\d+)' / $1 /g;
$self->param('cmd', $prefix.$flat_cmd.$postfix);
} else {
$self->param('cmd', \@cmd);
Expand Down

0 comments on commit 89fef56

Please sign in to comment.