diff options
author | Jeff '2 bits' Bachtel <jbachtel@bericotechnologies.com> | 2013-09-06 18:53:10 -0400 |
---|---|---|
committer | Jeff Bachtel <jbachtel@jbachtel-laptop-berico.dyn.bericotechnologies.com> | 2013-09-06 18:53:10 -0400 |
commit | ca1d63c2f668059eb5da3f8b61001ee898651eb1 (patch) | |
tree | 9251a7b4df7ab787b385c09ca9585f045141daeb | |
parent | 201158f1dee15accf6abbd7ad5a50af023ba5d23 (diff) | |
download | gitlab-ce-ca1d63c2f668059eb5da3f8b61001ee898651eb1.tar.gz |
-i flag allows sudo to work for git users using rvm that is not being used by
root user (su might be better)
-rwxr-xr-x | lib/support/init.d/gitlab | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab index 79c56a9854b..dbdf7db114b 100755 --- a/lib/support/init.d/gitlab +++ b/lib/support/init.d/gitlab @@ -35,7 +35,7 @@ sidekiq_pid_path="$pid_path/sidekiq.pid" # Switch to the app_user if it is not he/she who is running the script. if [ "$USER" != "$app_user" ]; then - sudo -u "$app_user" -H $0 "$@"; exit; + sudo -u "$app_user" -H -i $0 "$@"; exit; fi # Switch to the gitlab path, if it fails exit with an error. |