[DRE-commits] [gitlab] 01/02: switch to su
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sat Feb 13 18:55:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit 9e86aa5a1aacc5631fe10307a03a8da34b01f244
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Sat Feb 13 23:52:29 2016 +0530
switch to su
---
debian/rake-tasks.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index aec5ee0..e08baa1 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -4,7 +4,7 @@
export $(cat /etc/gitlab/gitlab-debian.conf|xargs)
echo "Initializing database..."
-if [ "$(sudo -u postgres psql gitlab_production -c '\d')" = \
+if [ "$(su postgres -c 'psql gitlab_production -c \\d')" = \
"No relations found." ]; then
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:setup \
RAILS_ENV=production force=yes'
--
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