Skip to content
Snippets Groups Projects
Commit dbb2f893 authored by Jeff '2 bits' Bachtel's avatar Jeff '2 bits' Bachtel Committed by Wes Gurney
Browse files

-i flag allows sudo to work for git users using rvm that is not being used by

root user (su might be better)
parent b4805b2a
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
Loading
Loading
@@ -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.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment