Merge branch 'log_dir_create' into 'master'

Create /var/log/gitlab explicitly to apply correct permissions.

Fixes #723

See merge request !546
This commit is contained in:
Marin Jankovski 2015-11-26 15:29:38 +00:00
commit 50caed9219
1 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,15 @@ gitlab_app = "gitlab"
gitlab_user = account_helper.gitlab_user
gitlab_group = account_helper.gitlab_group
# Explicitly try to create directory holding the logs to make sure
# that the directory is created with correct permissions and not fallback
# on umask of the process
directory File.dirname(gitlab_rails_log_dir) do
owner gitlab_user
mode '0755'
recursive true
end
[
gitlab_rails_etc_dir,
gitlab_rails_static_etc_dir,