From: Sam Date: Mon, 25 Aug 2014 06:55:38 +0000 (+1000) Subject: Crash if SMTP is not configured X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b7f9f4c7f7220b702154e57b1193340afca17a76;p=discourse_docker.git Crash if SMTP is not configured --- diff --git a/templates/web.template.yml b/templates/web.template.yml index db753b8..b31ef3d 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -21,6 +21,7 @@ params: upload_size: 3m run: + - exec: /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end' - file: path: /etc/runit/1.d/copy-env chmod: "+x"