From a5b5c8c5ee0c1f12ba8b398d5bef009e0dbb8f51 Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Thu, 14 May 2015 12:37:21 -0300 Subject: [PATCH] Change lock file to a directory owned by 'git' user --- cookbooks/gitlab/recipes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/gitlab/recipes/default.rb b/cookbooks/gitlab/recipes/default.rb index 8dd66e7..a29df74 100644 --- a/cookbooks/gitlab/recipes/default.rb +++ b/cookbooks/gitlab/recipes/default.rb @@ -18,8 +18,8 @@ end execute 'gitlab:setup' do user 'git' cwd '/usr/lib/gitlab' - command 'yes yes | bundle exec rake db:setup RAILS_ENV=production && touch /etc/gitlab/setup.done' - not_if { File.exists?('/etc/gitlab/setup.done') } + command 'yes yes | bundle exec rake db:setup RAILS_ENV=production && touch /var/lib/gitlab/setup.done' + not_if { File.exists?('/var/lib/gitlab/setup.done') } action :nothing notifies :restart, 'service[gitlab]' -- libgit2 0.21.2