12 lines
336 B
Bash
Executable file
12 lines
336 B
Bash
Executable file
#! /bin/bash
|
|
# Using bash for ${variable@Q} option for passing quotes from command line argument to rake
|
|
set -e
|
|
|
|
# Read debian specific configuration
|
|
. /etc/gitlab-common/gitlab-common.conf
|
|
. /etc/gitlab/gitlab-debian.conf
|
|
export DB RAILS_ENV
|
|
|
|
cd /usr/share/gitlab
|
|
|
|
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rake ${@@Q}"
|