discourse has to own /home/discourse otherwise rubygem issues
authorSam <sam.saffron@gmail.com>
Fri, 29 Apr 2016 06:11:08 +0000 (16:11 +1000)
committerSam <sam.saffron@gmail.com>
Fri, 29 Apr 2016 06:11:08 +0000 (16:11 +1000)
templates/web.template.yml

index bfd06ce637d0fc6fd6d6dd28aebbc37c8ff7302d..ae8db881d4f06bab817a22cf707ac6e4484a915f 100644 (file)
@@ -23,6 +23,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'
+  - exec: chown -R discourse /home/discourse
   - file:
      path: /etc/runit/1.d/copy-env
      chmod: "+x"