From afe60a0227bc7ebbaf652f425e3506bb25487846 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 25 Oct 2021 18:06:50 +0200 Subject: [PATCH] Enforce file ownership in upgrade --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 3e0561c..725465f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -117,6 +117,10 @@ then ynh_secure_remove --file="$tmpdir" fi +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # NGINX CONFIGURATION #=================================================