X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/98cc5f14caf136d786fea344a4742735ca192da2..069e33163e0b09a7d647a98c2fde284a16a43b99:/cookbooks/osqa/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/osqa/recipes/default.rb b/cookbooks/osqa/recipes/default.rb index e283f3795..db96e2e79 100644 --- a/cookbooks/osqa/recipes/default.rb +++ b/cookbooks/osqa/recipes/default.rb @@ -101,7 +101,7 @@ node[:osqa][:sites].each do |site| line.gsub!(/^( *)'PASSWORD': '.*',/, "\\1'PASSWORD': '#{database_password}',") line.gsub!(/^ALLOWED_HOSTS = .*/, "ALLOWED_HOSTS = ('help.openstreetmap.org',)") line.gsub!(/^CACHE_BACKEND = .*/, "CACHE_BACKEND = 'memcached://127.0.0.1:11211/'") - line.gsub!(/^APP_URL = 'http:\/\/'/, "APP_URL = 'http://#{name}'") + line.gsub!(%r{^APP_URL = 'http://'}, "APP_URL = 'http://#{name}'") line.gsub!(/^TIME_ZONE = 'America\/New_York'/, "TIME_ZONE = 'Europe/London'") line.gsub!(/^DISABLED_MODULES = \[([^\]]+)\]/, "DISABLED_MODULES = [\\1, 'localauth', 'facebookauth', 'oauthauth']")