From 6157b9ec51567a730eddc3747112d69a23359709 Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Wed, 13 May 2015 19:32:02 -0300 Subject: [PATCH] Avoid running gitlab:setup after initial setup --- cookbooks/gitlab/recipes/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/gitlab/recipes/default.rb b/cookbooks/gitlab/recipes/default.rb index 8da5920..8dd66e7 100644 --- a/cookbooks/gitlab/recipes/default.rb +++ b/cookbooks/gitlab/recipes/default.rb @@ -18,7 +18,8 @@ end execute 'gitlab:setup' do user 'git' cwd '/usr/lib/gitlab' - command 'yes yes | bundle exec rake db:setup RAILS_ENV=production' + command 'yes yes | bundle exec rake db:setup RAILS_ENV=production && touch /etc/gitlab/setup.done' + not_if { File.exists?('/etc/gitlab/setup.done') } action :nothing notifies :restart, 'service[gitlab]' -- libgit2 0.21.2