From eeb30a648924723bf583043a41ac3d2ee409d31e Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Mon, 25 Jul 2022 08:31:49 +0200 Subject: [PATCH] Use ynh_secure_remove --- scripts/upgrade | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 25148b0..e089a49 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -133,9 +133,7 @@ ynh_script_progression --message="Upgrading the database..." pushd "$final_path" # Clear caches # https://github.com/invoiceninja/invoiceninja/issues/7397 - rm -fr bootstrap/cache/* - rm -fr storage/framework/cache/* - rm -fr storage/framework/sessions/* + ynh_secure_remove bootstrap/cache/* storage/framework/cache/* storage/framework/sessions/* # Run the database migrations php$phpversion artisan migrate --force --no-interaction --verbose