improve permissions in tmp directory
authorSam Saffron <sam.saffron@gmail.com>
Tue, 7 Jul 2020 00:04:34 +0000 (10:04 +1000)
committerSam Saffron <sam.saffron@gmail.com>
Tue, 7 Jul 2020 00:04:34 +0000 (10:04 +1000)
previously could be owned by the root group

templates/web.template.yml

index 7ddddd76f3336179b67474fd142ef4f76d0f3f63..fc4918023e7acec80c742fc59d5b974c8efb5048 100644 (file)
@@ -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