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.
This commit is contained in:
Sameer Naik 2014-07-26 13:00:10 +05:30
parent a1cfacbc34
commit 859ec18fe5
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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