debian-mirror-gitlab/debian/gitlab-rake.sh

15 lines
323 B
Bash
Raw Normal View History

2016-10-01 16:02:34 +05:30
#! /bin/sh
set -e
# Read debian specific configuration
2018-11-19 20:23:02 +05:30
. /etc/gitlab-common/gitlab-common.conf
. /etc/gitlab/gitlab-debian.conf
export DB RAILS_ENV
2016-10-01 16:02:34 +05:30
cd /usr/share/gitlab
# Check gitlab is configured correctly
printf "Check if Gitlab is configured correctly...\n"
runuser -u ${gitlab_user} -- sh -c "bundle exec rake $@"