From b7f9f4c7f7220b702154e57b1193340afca17a76 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 25 Aug 2014 16:55:38 +1000 Subject: [PATCH] Crash if SMTP is not configured --- templates/web.template.yml | 1 + 1 file changed, 1 insertion(+) 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" -- 2.25.1