The command /srv/gitlab && bundle exec rake gitlab:check RAILS_ENV=production is missing cd at the beginning. This MR adds it.
/srv/gitlab && bundle exec rake gitlab:check RAILS_ENV=production
cd