Commit 6be8b4391cdc06bb7e454f37406f7b918b8de033

Authored by David Silva
1 parent 9363cf19

Fixs relative url for gitlab assets.

Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
cookbooks/gitlab/recipes/default.rb
@@ -94,3 +94,7 @@ execute &#39;selinux-gitlab&#39; do @@ -94,3 +94,7 @@ execute &#39;selinux-gitlab&#39; do
94 command 'selinux-install-module /etc/selinux/local/gitlab.te' 94 command 'selinux-install-module /etc/selinux/local/gitlab.te'
95 action :nothing 95 action :nothing
96 end 96 end
  97 +
  98 +execute 'fix-relative-url-for-assets' do
  99 + command 'sed -i \'s/# config.relative_url_root = "\/gitlab"/config.relative_url_root = "\/gitlab"/\' config/application.rb'
  100 +end