From 4a3ebfac0e43157ea58a3723094ad16e41332200 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 14 May 2019 15:37:47 -0400 Subject: [PATCH] FIX: Correctly match when protocol-less CDN is used --- templates/web.template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web.template.yml b/templates/web.template.yml index eb06dfad3..3fba6692e 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -27,7 +27,7 @@ run: - exec: thpoff echo "thpoff is installed!" - exec: /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end' - exec: /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end' - - exec: /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..2] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end' + - exec: /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end' - exec: chown -R discourse /home/discourse # TODO: move to base image (anacron can not be fired up using rc.d) - exec: rm -f /etc/cron.d/anacron