Commit 574d8cc7 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Merge pull request #5012 from jeffb-bt/master

-i flag allows sudo to work for git users using rvm that is not being us...
parents c7cb7599 ca1d63c2
...@@ -35,7 +35,7 @@ sidekiq_pid_path="$pid_path/sidekiq.pid" ...@@ -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. # Switch to the app_user if it is not he/she who is running the script.
if [ "$USER" != "$app_user" ]; then if [ "$USER" != "$app_user" ]; then
sudo -u "$app_user" -H $0 "$@"; exit; sudo -u "$app_user" -H -i $0 "$@"; exit;
fi fi
# Switch to the gitlab path, if it fails exit with an error. # Switch to the gitlab path, if it fails exit with an error.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment