From 3c0599566bc80ae4be7ccd31658fc5fd3dc5e2d6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Sep 2020 08:23:49 +0300 Subject: [PATCH] apply more sane permissions on cache directories --- app/startup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/startup.sh b/app/startup.sh index cceeb50..b4744dc 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -52,7 +52,8 @@ chown -R $OWNER_UID:$OWNER_GID $DST_DIR \ /var/log/php7 for d in cache lock feed-icons; do - chmod -R 777 $DST_DIR/$d + chmod 777 $DST_DIR/$d + find $DST_DIR/$d -type f -exec chmod 666 {} \; done $PSQL -c "create extension if not exists pg_trgm"