[DRE-commits] [gitlab] 02/07: add database configuration
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sat Oct 24 07:52:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit 84c78b6d70b9c3a6998f31c56b2574868ee86966
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Fri Oct 9 20:13:23 2015 +0530
add database configuration
---
debian/postinst | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index 98db82d..5d75b09 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -28,6 +28,14 @@ set -e
case "$1" in
configure)
+ # Show debconf questions
+ . /usr/share/debconf/confmodule
+ . /usr/share/dbconfig-common/dpkg/postinst.pgsql
+
+ dbc_dbname="gitlab_production"
+ dbc_dbuser="gitlab"
+
+ dbc_go gitlab $@
. /etc/gitlab/gitlab-debian.conf
. /usr/lib/gitlab/scripts/adduser.sh
@@ -41,7 +49,7 @@ case "$1" in
echo "Verifying we have all required libraries..."
su ${gitlab_user} -s /bin/sh -c 'bundle install --local'
- echo "Running final rake tasks..."
+ echo "Running final rake tasks..."
# Move these to rails-common
#. /usr/lib/diaspora-common/scripts/rake-tasks.sh
;;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list