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