mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-22 19:16:39 +10:00
Merge branch 'master' of github.com:gitlabhq/gitlabhq
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user