Speed up mass-chown
[discourse_docker.git] / templates / web.template.yml
index cc19d92c3e41982537bc121a9c22c7f96d43faaf..e71ff7e82321b3cc70c2f1829ac70898590342fb 100644 (file)
@@ -24,6 +24,7 @@ params:
   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
@@ -146,7 +147,7 @@ run:
       cmd:
         # ensure we are on latest bundler
         - gem update bundler
-        - chown -R discourse $home
+        - find $home ! -user discourse -exec chown discourse {} \+
 
   - exec:
       cd: $home