Commit a678d8beaaf68ddfa360b1a9cae6e04336b984a3
1 parent
b5e0182d
Exists in
master
and in
17 other branches
Allow the git user to modify db/schema.rb
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/recipes/database_migrations.rb
@@ -20,6 +20,9 @@ execute "initialize database" do | @@ -20,6 +20,9 @@ execute "initialize database" do | ||
20 | action :nothing | 20 | action :nothing |
21 | end | 21 | end |
22 | 22 | ||
23 | +user_group = "#{node['gitlab']['user']['username']}:#{node['gitlab']['user']['group']}" | ||
24 | +execute "chown #{user_group} /opt/gitlab/embedded/service/gitlab-core/db/schema.rb" | ||
25 | + | ||
23 | execute "migrate database" do | 26 | execute "migrate database" do |
24 | command "/opt/gitlab/bin/gitlab-rake db:migrate" | 27 | command "/opt/gitlab/bin/gitlab-rake db:migrate" |
25 | end | 28 | end |