From 2a7698f0bc9a70989838d82101401963f556552c Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 26 Jan 2023 00:41:23 +0700 Subject: [PATCH] Don't know why this was removed --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 615950e..afe1eaa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,6 +82,10 @@ then ynh_setup_source --dest_dir="$final_path" --keep="config.php" fi +# Void and recreate final_path +ynh_secure_remove --file="$final_path" +ynh_exec_warn_less mkdir "$final_path" + chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"