[DRE-commits] [gitlab] 02/03: update db checks
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Nov 3 12:24:48 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 6cbbf28cc17830f2aa45ddaba6197cd7e776aac1
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Nov 3 17:44:51 2015 +0530
update db checks
---
debian/postinst | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index 201008c..fde01cb 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -35,11 +35,12 @@ case "$1" in
# Show debconf questions
. /usr/share/debconf/confmodule
echo "Create database if not present"
- if ! su gitlab -s /bin/sh -c "psql gitlab_production -c ''"
+ if ! su postgres -s /bin/sh -c "psql gitlab_production -c ''"
then
su postgres -c 'createdb gitlab_production'
fi
+ # Adjust database privileges
. /usr/lib/gitlab/scripts/grantpriv.sh
echo "Setting up environment varibales..."
export RAILS_ENV=production
--
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