From fe8fa9a58110a70645edfa3ce0320a292da39fce Mon Sep 17 00:00:00 2001 From: Rovanion Date: Tue, 3 Sep 2013 14:24:20 +0200 Subject: [PATCH] Made script path flexible --- lib/support/init.d/gitlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab index a05227c..79c56a9 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. -- libgit2 0.21.2