Skip to content
Snippets Groups Projects
Commit fe8fa9a5 authored by Rovanion's avatar Rovanion Committed by Rovanion Luckey
Browse files

Made script path flexible

parent 98ea81e6
No related branches found
No related tags found
Loading
Loading
@@ -35,7 +35,7 @@ sidekiq_pid_path="$pid_path/sidekiq.pid"
Loading
@@ -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 /etc/init.d/gitlab "$@"; exit; sudo -u "$app_user" -H $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.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment