From baf9273c5354e113d082f0044404558e789971f3 Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Sun, 14 Jan 2024 23:59:23 +0100 Subject: [PATCH] Update upgrade Use ynh_secure_remove --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f556700..56c2ad5 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -120,8 +120,8 @@ if ynh_compare_current_package_version --comparison le --version 1.30.0~ynh1 then ynh_script_progression --message="Doing a hard cache flush for major Kimai 2 update from version 1.x to 2.x" # https://www.kimai.org/documentation/updates.html - rm -r "$final_path/var/cache/*" - rm -r "$final_path/var/plugins/*" + ynh_secure_remove --file="$final_path/var/cache/*" + ynh_secure_remove --file="$final_path/var/plugins/*" fi chmod 750 "$final_path"