Commit ca1d63c2f668059eb5da3f8b61001ee898651eb1
Committed by
Jeff Bachtel
1 parent
201158f1
Exists in
master
and in
4 other branches
-i flag allows sudo to work for git users using rvm that is not being used by
root user (su might be better)
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. | ... | ... |