mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-20 18:16:45 +10:00
Made script path flexible
This commit is contained in:
committed by
Rovanion Luckey
parent
98ea81e659
commit
fe8fa9a581
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user