[DRE-commits] [redmine] 12/15: debian/config: set default database name
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Feb 14 14:32:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository redmine.
commit f749d9f6187b12093f55fce61472813829c56cdc
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun Feb 14 11:50:54 2016 -0200
debian/config: set default database name
---
debian/config | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/debian/config b/debian/config
index dd3b6b1..1375192 100644
--- a/debian/config
+++ b/debian/config
@@ -23,6 +23,13 @@ if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
for inst in $current_instances; do
dbc_go redmine/instances/$inst "$@"
+ # use redmine_${instance} as database name by default
+ db_rc=0
+ dbc_get redmine/instances/$inst/dbname || db_rc=$?
+ if [ $db_rc -ne 0 -o -z "$RET" ]; then
+ dbc_set redmine/instances/$inst/dbname "redmine_${inst}"
+ fi
+
# TODO handle language for initial db data
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/redmine.git
More information about the Pkg-ruby-extras-commits
mailing list