From 859ec18fe567d76a7dd074b394938ecc7992cbe8 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sat, 26 Jul 2014 13:00:10 +0530 Subject: [PATCH] run gitlab init script as git user Closes #103 #74 When the /etc/init.d/gitlab script tries to switch the user to the `git` user, selinux steps in and blocks it. To avoid this we simple run the script as the `git` user using the `sudo -u git -H` command prefix. In short the image should work with selinux enabled. --- Changelog.md | 3 +++ assets/init | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 8c4c31a7..a9193b18 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,8 @@ # Changelog +**latest** +- run /etc/init.d/gitlab as git user, plays nicely with selinux + **7.1.0** - removed GITLAB_SUPPORT configuration option - upgrade to gitlab-ce 7.1.0 diff --git a/assets/init b/assets/init index 69ce48eb..4712a582 100755 --- a/assets/init +++ b/assets/init @@ -474,7 +474,7 @@ appStart () { rm -rf /home/git/gitlab/tmp/pids/sidekiq.pid # start the gitlab application - /etc/init.d/gitlab start + sudo -u git -H /etc/init.d/gitlab start # create satellite directories sudo -u git -H bundle exec rake gitlab:satellites:create RAILS_ENV=production