From: Kane York Date: Wed, 22 Jul 2015 02:22:54 +0000 (-0700) Subject: Abort if domain is not configured X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=28aa70d0f3c7ca3c3e77611fb8b1f8cac5e3b64c;p=discourse_docker.git Abort if domain is not configured https://meta.discourse.org/t/stupid-discourse-examples-com-set-up-issue/31260/9?u=riking --- 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"