Skip to content

Commit

Permalink
dbconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed May 7, 2014
1 parent 5b5c4ba commit 38d865c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions debian/bareos-database-common.config.in
Expand Up @@ -70,8 +70,8 @@ if [ -r @scriptdir@/bareos-config-lib.sh ]; then
dbc_go bareos-database-common $param1 $param2 $@
# workaround: if an empty mysql password is defined, explicitly set it
if [ ${dbpass+DEFINED} ]; then
if echo "$DB_INSTALLED" | grep -q mysql; then
db_set bareos-database-common/mysql/app-pass "$dbpass"
if get_database_driver | grep -q mysql; then
db_set bareos-database-common/mysql/app-pass ""
fi
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion platforms/debian/set_dbconfig_vars.sh.in
Expand Up @@ -27,7 +27,7 @@ else
# set dbpass, even if empty
dbpass="$bareos_database_password"
;;
sqlite3
sqlite3)
dbtype="sqlite3"
# dbpass: not required
;;
Expand Down

0 comments on commit 38d865c

Please sign in to comment.