diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-07-20 13:26:36 +0200 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-07-20 13:26:36 +0200 |
commit | da039ed51c5e8755cfdc1045ecfbb5b238e8231b (patch) | |
tree | 45822e95b210d0911d3116451736ecad93ce0b37 | |
parent | 8fa9da49c4a4d8bc58917699578ed4e59a90d162 (diff) | |
parent | 83304bf41000cc28fdc27834638b5b76fc532f62 (diff) | |
download | gitlab-ce-da039ed51c5e8755cfdc1045ecfbb5b238e8231b.tar.gz |
Merge branch 'master' of github.com:gitlabhq/gitlabhq
-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 946902e2f6d..a3455728a94 100755 --- a/lib/support/init.d/gitlab +++ b/lib/support/init.d/gitlab @@ -41,7 +41,7 @@ shell_path="/bin/bash" test -f /etc/default/gitlab && . /etc/default/gitlab # Switch to the app_user if it is not he/she who is running the script. -if [ "$USER" != "$app_user" ]; then +if [ `whoami` != "$app_user" ]; then eval su - "$app_user" -s $shell_path -c $(echo \")$0 "$@"$(echo \"); exit; fi |