summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-25 19:33:17 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-25 19:33:17 +0200
commit5fc3d746d22ffafb881187a7ce5280d973a1cad4 (patch)
treeaf756cfc800877012bdc1a26e3eb8c3a88a4fcc0
parentc21c3e5707c4f6e28a3733153f2e898279e0730d (diff)
parent306d4ee728e68e1cbc3e63b56ff2d7912bb5605f (diff)
downloadgitlab-ce-5fc3d746d22ffafb881187a7ce5280d973a1cad4.tar.gz
Merge branch 'master' of github.com:gitlabhq/gitlabhq
-rwxr-xr-xlib/support/init.d/gitlab2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab
index c6e570784e0..ff584e69058 100755
--- a/lib/support/init.d/gitlab
+++ b/lib/support/init.d/gitlab
@@ -40,7 +40,7 @@ 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
- sudo -u "$app_user" -H -i $0 "$@"; exit;
+ eval su - "$app_user" -c $(echo \")$0 "$@"$(echo \"); exit;
fi
# Switch to the gitlab path, exit on failure.