debian-mirror-gitlab/debian/gitlab-rake.sh
Pirate Praveen 98e444746f Export GEM_HOME from gitlab-rake.sh (Closes: #1008932)
Thanks to Maxmillian Stein
2022-04-08 23:22:56 +05:30

12 lines
345 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 GEM_HOME
cd /usr/share/gitlab
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rake ${@@Q}"