Skip to content

Commit

Permalink
bareos-config-lib.sh: allow override of DBDRIVER via DBTYPE environme…
Browse files Browse the repository at this point in the history
…nt variable
  • Loading branch information
pstorz committed Feb 20, 2020
1 parent 8a1be5a commit 1b718ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/scripts/bareos-config-lib.sh.in
Expand Up @@ -762,7 +762,12 @@ get_databases_installed()

get_database_driver_default()
{
DBDRIVER=`get_database_driver`
if [ -n "$DBTYPE" ]; then
DBDRIVER=$DBTYPE;
else
DBDRIVER=`get_database_driver`
fi


if [ -z "$DBDRIVER" ]; then
DBDRIVER=`get_databases_installed | head -n 1`
Expand Down

0 comments on commit 1b718ef

Please sign in to comment.