diff options
| author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-27 11:22:35 +0200 |
|---|---|---|
| committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-27 11:22:35 +0200 |
| commit | 0be6debb0b3350f35bf4b6a904c60da826314b3b (patch) | |
| tree | 5a9281db4a97d8ffa8f3efc73e17fb0b11b17aef /lib/support | |
| parent | d371331a65070ce5b3ab9c210eac697062170c91 (diff) | |
| parent | cd6046e1dd347f3a9bd7d062447aa25306a5755b (diff) | |
| download | gitlab-ce-0be6debb0b3350f35bf4b6a904c60da826314b3b.tar.gz | |
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into backup-archive-permissions
Diffstat (limited to 'lib/support')
| -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 |
