Commit 5fc3d746d22ffafb881187a7ce5280d973a1cad4

Authored by Dmitriy Zaporozhets
2 parents c21c3e57 306d4ee7

Merge branch 'master' of github.com:gitlabhq/gitlabhq

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/support/init.d/gitlab
@@ -40,7 +40,7 @@ test -f /etc/default/gitlab && . /etc/default/gitlab @@ -40,7 +40,7 @@ test -f /etc/default/gitlab && . /etc/default/gitlab
40 40
41 # Switch to the app_user if it is not he/she who is running the script. 41 # Switch to the app_user if it is not he/she who is running the script.
42 if [ "$USER" != "$app_user" ]; then 42 if [ "$USER" != "$app_user" ]; then
43 - sudo -u "$app_user" -H -i $0 "$@"; exit; 43 + eval su - "$app_user" -c $(echo \")$0 "$@"$(echo \"); exit;
44 fi 44 fi
45 45
46 # Switch to the gitlab path, exit on failure. 46 # Switch to the gitlab path, exit on failure.