Skip to content

Commit

Permalink
dbconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed May 6, 2014
1 parent c760015 commit 5b5c4ba
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion platforms/debian/set_dbconfig_vars.sh.in
Expand Up @@ -15,5 +15,21 @@ else
#dbc_dbport=
dbname=`get_database_name`
dbuser=`get_database_user`
dbpass=`get_database_password`
bareos_database_password=`get_database_password`
case "`get_database_driver`" in
postgresql)
dbtype="pgsql"
# if Bareos config password is defined, set dbpass
[ "$bareos_database_password" ] && dbpass="$bareos_database_password"
;;
mysql)
dbtype="mysql"
# set dbpass, even if empty
dbpass="$bareos_database_password"
;;
sqlite3
dbtype="sqlite3"
# dbpass: not required
;;
esac
fi

0 comments on commit 5b5c4ba

Please sign in to comment.