Commit 9b521d8c2d079b71369ddb178e77a06ac3d608fc
Exists in
master
and in
36 other branches
Merge branch 'lock_gitlab_setup' into 'master'
Lock gitlab setup This fixes an error whenever trying to write the setup.done lock file, since the git user cannot write in the previous directory See merge request !15
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
cookbooks/gitlab/recipes/default.rb
... | ... | @@ -18,8 +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 && touch /etc/gitlab/setup.done' | |
22 | - not_if { File.exists?('/etc/gitlab/setup.done') } | |
21 | + command 'yes yes | bundle exec rake db:setup RAILS_ENV=production && touch /var/lib/gitlab/setup.done' | |
22 | + not_if { File.exists?('/var/lib/gitlab/setup.done') } | |
23 | 23 | |
24 | 24 | action :nothing |
25 | 25 | notifies :restart, 'service[gitlab]' | ... | ... |