We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db915f7 commit e9ef274Copy full SHA for e9ef274
lib/support/init.d/gitlab
@@ -41,7 +41,7 @@ shell_path="/bin/bash"
41
test -f /etc/default/gitlab && . /etc/default/gitlab
42
43
# Switch to the app_user if it is not he/she who is running the script.
44
-if [ "$USER" != "$app_user" ]; then
+if [ `whoami` != "$app_user" ]; then
45
eval su - "$app_user" -s $shell_path -c $(echo \")$0 "$@"$(echo \"); exit;
46
fi
47
0 commit comments