improve permissions in tmp directory

improve permissions in tmp directory

previously could be owned by the root group

diff --git a/templates/web.template.yml b/templates/web.template.yml
index 7ddddd7..fc49180 100644
--- a/templates/web.template.yml
+++ b/templates/web.template.yml
@@ -92,6 +92,8 @@ run:
         - git pull
         - git fetch origin $version
         - git checkout $version
+        - mkdir -p tmp
+        - chown discourse:www-data tmp
         - mkdir -p tmp/pids
         - mkdir -p tmp/sockets
         - touch tmp/.gitkeep

GitHub sha: 5f7f0953

1 Like