From 1c53345c7ef464701808272bdd9d35202a2d9e14 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 2 May 2024 08:52:25 +0200 Subject: [PATCH] ynh_secure_remove on some dirs --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 5fc875d..12acb31 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,6 +87,9 @@ then ynh_setup_source --dest_dir="$install_dir/build" --full_replace=1 fi +# full replace on live dir +ynh_secure_remove "$install_dir/live" + chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -158,6 +161,9 @@ pushd "$install_dir/live/services/web" ynh_secure_remove --file="$install_dir/live/services/web/node_modules/.cache" popd +#remove build dir +ynh_secure_remove "$install_dir/build" + chmod 750 "$install_dir/live" chmod -R o-rwx "$install_dir/live" chown -R $app:www-data "$install_dir/live"