From c6b7bf8ad7b53f4b431c2d0f7add9b36e2d65bd0 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Tue, 5 Aug 2014 10:54:14 +0200 Subject: [PATCH] Create git's home directory if necessary --- CHANGELOG | 1 + files/gitlab-cookbooks/gitlab/recipes/users.rb | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index fdce82b..2154600 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,7 @@ omnibus-gitlab repository. - Pass environment variables to Unicorn and Sidekiq (Chris Portman) - Add openssl_verify_mode to SMTP email configuration (Dionysius Marquis) - Enable the 'ssh_host' field in gitlab.yml (Florent Baldino) +- Create git's home directory if necessary 7.1.0 - Build: explicitly use .forward for sending notifications diff --git a/files/gitlab-cookbooks/gitlab/recipes/users.rb b/files/gitlab-cookbooks/gitlab/recipes/users.rb index 6d9cc08..1423b9d 100644 --- a/files/gitlab-cookbooks/gitlab/recipes/users.rb +++ b/files/gitlab-cookbooks/gitlab/recipes/users.rb @@ -20,6 +20,10 @@ gitlab_username = node['gitlab']['user']['username'] gitlab_group = node['gitlab']['user']['group'] gitlab_home = node['gitlab']['user']['home'] +directory gitlab_home do + recursive true +end + # Create the group for the GitLab user group gitlab_group do gid node['gitlab']['user']['gid'] -- libgit2 0.21.2