upload_size: 10m
run:
+ - exec: thpoff echo "thpoff is installed!"
- 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
cmd:
# ensure we are on latest bundler
- gem update bundler
- - chown -R discourse $home
+ - find $home ! -user discourse -exec chown discourse {} \+
- exec:
cd: $home