2021-11-04 02:01:51 +05:30
|
|
|
#! /bin/bash
|
|
|
|
# Using bash for ${variable@Q} option for passing quotes from command line argument to rake
|
2016-10-01 16:02:34 +05:30
|
|
|
set -e
|
|
|
|
|
2017-03-17 22:27:14 +05:30
|
|
|
# Read debian specific configuration
|
2018-11-19 20:23:02 +05:30
|
|
|
. /etc/gitlab-common/gitlab-common.conf
|
2017-03-17 22:27:14 +05:30
|
|
|
. /etc/gitlab/gitlab-debian.conf
|
|
|
|
export DB RAILS_ENV
|
|
|
|
|
2016-10-01 16:02:34 +05:30
|
|
|
cd /usr/share/gitlab
|
|
|
|
|
2021-11-04 02:01:51 +05:30
|
|
|
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rake ${@@Q}"
|