Commit 574d8cc7ed3c3789b1d7d41b0fc3472ac30c3e47
Exists in
master
and in
4 other branches
Merge pull request #5012 from jeffb-bt/master
-i flag allows sudo to work for git users using rvm that is not being us...
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/support/init.d/gitlab
... | ... | @@ -35,7 +35,7 @@ sidekiq_pid_path="$pid_path/sidekiq.pid" |
35 | 35 | |
36 | 36 | # Switch to the app_user if it is not he/she who is running the script. |
37 | 37 | if [ "$USER" != "$app_user" ]; then |
38 | - sudo -u "$app_user" -H $0 "$@"; exit; | |
38 | + sudo -u "$app_user" -H -i $0 "$@"; exit; | |
39 | 39 | fi |
40 | 40 | |
41 | 41 | # Switch to the gitlab path, if it fails exit with an error. | ... | ... |