summaryrefslogtreecommitdiff
path: root/lib/support/init.d
diff options
context:
space:
mode:
authorJeff '2 bits' Bachtel <jbachtel@bericotechnologies.com>2013-09-06 18:53:10 -0400
committerJeff Bachtel <jbachtel@jbachtel-laptop-berico.dyn.bericotechnologies.com>2013-09-06 18:53:10 -0400
commitca1d63c2f668059eb5da3f8b61001ee898651eb1 (patch)
tree9251a7b4df7ab787b385c09ca9585f045141daeb /lib/support/init.d
parent201158f1dee15accf6abbd7ad5a50af023ba5d23 (diff)
downloadgitlab-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)
Diffstat (limited to 'lib/support/init.d')
-rwxr-xr-xlib/support/init.d/gitlab2
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.