diff options
author | Rovanion <rovanion.luckey@gmail.com> | 2013-09-03 14:24:20 +0200 |
---|---|---|
committer | Rovanion Luckey <rovanion.luckey@gmail.com> | 2013-09-03 14:27:51 +0200 |
commit | fe8fa9a58110a70645edfa3ce0320a292da39fce (patch) | |
tree | 97a276bf6d8c5d426c0d3dcc9a725ff0694c3c80 /lib/support | |
parent | 98ea81e65956cb37fc67c03e3a88c29c6932b12c (diff) | |
download | gitlab-ce-fe8fa9a58110a70645edfa3ce0320a292da39fce.tar.gz |
Made script path flexible
Diffstat (limited to 'lib/support')
-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 a05227ceb1b..79c56a9854b 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 /etc/init.d/gitlab "$@"; exit; + sudo -u "$app_user" -H $0 "$@"; exit; fi # Switch to the gitlab path, if it fails exit with an error. |