From 6be8b4391cdc06bb7e454f37406f7b918b8de033 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Mon, 7 Dec 2015 16:03:37 -0200 Subject: [PATCH] Fixs relative url for gitlab assets. --- cookbooks/gitlab/recipes/default.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/cookbooks/gitlab/recipes/default.rb b/cookbooks/gitlab/recipes/default.rb index 16a157d..0d65e08 100644 --- a/cookbooks/gitlab/recipes/default.rb +++ b/cookbooks/gitlab/recipes/default.rb @@ -94,3 +94,7 @@ execute 'selinux-gitlab' do command 'selinux-install-module /etc/selinux/local/gitlab.te' action :nothing end + +execute 'fix-relative-url-for-assets' do + command 'sed -i \'s/# config.relative_url_root = "\/gitlab"/config.relative_url_root = "\/gitlab"/\' config/application.rb' +end -- libgit2 0.21.2