From 28aa70d0f3c7ca3c3e77611fb8b1f8cac5e3b64c Mon Sep 17 00:00:00 2001 From: Kane York Date: Tue, 21 Jul 2015 19:22:54 -0700 Subject: [PATCH] Abort if domain is not configured https://meta.discourse.org/t/stupid-discourse-examples-com-set-up-issue/31260/9?u=riking --- templates/web.template.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index b23aaab..b4fdd92 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -22,6 +22,7 @@ params: run: - 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' - file: path: /etc/runit/1.d/copy-env chmod: "+x" -- 2.25.1