From 5f7f09539cac22ee995eb394bccf7369b8646efa Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 7 Jul 2020 10:04:34 +1000 Subject: [PATCH] improve permissions in tmp directory previously could be owned by the root group --- templates/web.template.yml | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1