From 122f7a820e8d0df277d7d7462885224fe2d71ee0 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Tue, 12 Dec 2017 22:55:51 +0530 Subject: [PATCH] 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 30ab4ce4f1..17656108be 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..."