Switch to bash for quotes support in arguments for gitlab-rake
This commit is contained in:
parent
e1c21b132b
commit
fef750d687
1 changed files with 3 additions and 5 deletions
8
debian/gitlab-rake.sh
vendored
8
debian/gitlab-rake.sh
vendored
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/bash
|
||||||
|
# Using bash for ${variable@Q} option for passing quotes from command line argument to rake
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Read debian specific configuration
|
# Read debian specific configuration
|
||||||
|
@ -9,6 +9,4 @@ export DB RAILS_ENV
|
||||||
|
|
||||||
cd /usr/share/gitlab
|
cd /usr/share/gitlab
|
||||||
|
|
||||||
# Check gitlab is configured correctly
|
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rake ${@@Q}"
|
||||||
printf "Check if Gitlab is configured correctly...\n"
|
|
||||||
runuser -u ${gitlab_user} -- sh -c "/usr/bin/bundle exec rake $@"
|
|
||||||
|
|
Loading…
Reference in a new issue