debian-mirror-gitlab/debian/gitlab-check.sh
2017-03-17 22:27:14 +05:30

13 lines
290 B
Bash
Executable file

#! /bin/sh
set -e
# Read debian specific configuration
. /etc/gitlab/gitlab-debian.conf
export DB RAILS_ENV
cd /usr/share/gitlab
# Check gitlab is configured correctly
printf "Check if Gitlab is configured correctly...\n"
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:check'