Commit fe8fa9a58110a70645edfa3ce0320a292da39fce
Committed by
Rovanion Luckey
1 parent
98ea81e6
Exists in
master
and in
4 other branches
Made script path flexible
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,7 +35,7 @@ sidekiq_pid_path="$pid_path/sidekiq.pid" | ||
35 | 35 | ||
36 | # Switch to the app_user if it is not he/she who is running the script. | 36 | # Switch to the app_user if it is not he/she who is running the script. |
37 | if [ "$USER" != "$app_user" ]; then | 37 | if [ "$USER" != "$app_user" ]; then |
38 | - sudo -u "$app_user" -H /etc/init.d/gitlab "$@"; exit; | 38 | + sudo -u "$app_user" -H $0 "$@"; exit; |
39 | fi | 39 | fi |
40 | 40 | ||
41 | # Switch to the gitlab path, if it fails exit with an error. | 41 | # Switch to the gitlab path, if it fails exit with an error. |