Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
1341646f
Commit
1341646f
authored
Nov 05, 2021
by
Francesc Guasch
Browse files
Merge branch 'fix/1637_group_base' of github.com:UPC/ravada into fix/1637_group_base
parents
8339a51a
8c92d250
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
1341646f
...
...
@@ -2382,6 +2382,11 @@ sub _connect_dbh {
my
$db_pass
=
(
$CONFIG
->
{
db
}
->
{
password
}
or
undef
);
my
$db
=
(
$CONFIG
->
{
db
}
->
{
db
}
or
'
ravada
'
);
my
$host
=
$CONFIG
->
{
db
}
->
{
host
};
my
$hostname
=
$CONFIG
->
{
db
}
->
{
hostname
};
if
(
defined
$host
&&
defined
$hostname
&&
$host
ne
$hostname
)
{
warn
"
Warning: DB config in
$FILE_CONFIG
conflicting parameters host='
$host
', hostname='
$hostname
'
\n
";
}
$host
=
$hostname
if
!
defined
$host
&&
defined
$hostname
;
my
$data_source
=
"
DBI:
$driver
:
$db
";
$data_source
=
"
DBI:
$driver
:database=
$db
;host=
$host
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment