From 9691f58f3566c8126f571d08ff17ae0374b2d7d1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 24 Jan 2022 23:04:50 +0100 Subject: [PATCH] Protect .env --- scripts/restore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/restore b/scripts/restore index f887672..cc192c4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -70,6 +70,10 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +config="$final_path/.env" +chmod 400 "$config" +chown $app:$app "$config" + #================================================= # RESTORE THE PHP-FPM CONFIGURATION #=================================================