diff --git a/files/gitlab-cookbooks/gitlab/recipes/database_migrations.rb b/files/gitlab-cookbooks/gitlab/recipes/database_migrations.rb index 8fe0071..0dd9ab1 100644 --- a/files/gitlab-cookbooks/gitlab/recipes/database_migrations.rb +++ b/files/gitlab-cookbooks/gitlab/recipes/database_migrations.rb @@ -20,6 +20,9 @@ execute "initialize database" do action :nothing end +user_group = "#{node['gitlab']['user']['username']}:#{node['gitlab']['user']['group']}" +execute "chown #{user_group} /opt/gitlab/embedded/service/gitlab-core/db/schema.rb" + execute "migrate database" do command "/opt/gitlab/bin/gitlab-rake db:migrate" end -- libgit2 0.21.2