tag 815798 - unreproducible
tag 815798 + patch

Reproducible in my system.

su postgres -c 'psql gitlab_production -c \\d' was outputting "No relations
found." in localized format (I have LANG=it_IT.UTF-8), breaking the test and
skipping database setup.

Forcing LANG=C in psql execution fixed in my case.


--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -18,7 +18,7 @@
   }
 fi
 echo "Initializing database..."
-if [ "$(su postgres -c 'psql gitlab_production -c \\d')" = \
+if [ "$(su postgres -c 'LANG=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'

Reply via email to