From 695f1059b4bf6b9eb6cc6e5fd3da015314e8e57f Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 17 Apr 2022 17:00:25 +0200 Subject: [PATCH] Fix .env permission (admin panel access to the config file) --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index f2933c51..70a5c09b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -163,6 +163,9 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +# Pixelfed app should be able to edit its settings from the admin panel +chmod 600 "$final_path"/.env + #================================================= # NGINX CONFIGURATION