Commit 6157b9ec51567a730eddc3747112d69a23359709
1 parent
b22e330d
Exists in
master
and in
90 other branches
Avoid running gitlab:setup after initial setup
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
cookbooks/gitlab/recipes/default.rb
... | ... | @@ -18,7 +18,8 @@ end |
18 | 18 | execute 'gitlab:setup' do |
19 | 19 | user 'git' |
20 | 20 | cwd '/usr/lib/gitlab' |
21 | - command 'yes yes | bundle exec rake db:setup RAILS_ENV=production' | |
21 | + command 'yes yes | bundle exec rake db:setup RAILS_ENV=production && touch /etc/gitlab/setup.done' | |
22 | + not_if { File.exists?('/etc/gitlab/setup.done') } | |
22 | 23 | |
23 | 24 | action :nothing |
24 | 25 | notifies :restart, 'service[gitlab]' | ... | ... |