mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
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:
parent
a1cfacbc34
commit
859ec18fe5
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user