[DRE-commits] [gitlab] 01/01: catch stderr as well

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Dec 12 17:30:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch syslibs
in repository gitlab.

commit 122f7a820e8d0df277d7d7462885224fe2d71ee0
Author: Pirate Praveen <praveen at debian.org>
Date:   Tue Dec 12 22:55:51 2017 +0530

    catch stderr as well
---
 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 30ab4ce..1765610 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -9,7 +9,7 @@ export DB RAILS_ENV
 cd /usr/share/gitlab
 
 # Check if the db is already present
-db_relations="$(LANG=C runuser -u postgres -- sh -c "psql gitlab_production -c \"\d\"")"
+db_relations="$(LANG=C runuser -u postgres -- sh -c "psql gitlab_production -c \"\d\"" 2>&1)"
 if [ "$db_relations" = "No relations found." ] || \
   [ "$db_relations" = "Did not find any relations." ]; then
   echo "Initializing database..."

-- 
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