From 99d06c6815f8e417e596bf52961e116400fc0f41 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 10 Apr 2019 00:15:31 +0200 Subject: [PATCH] Switch to ynh_secure_remove --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 00af287..7475218 100755 --- a/scripts/install +++ b/scripts/install @@ -70,7 +70,7 @@ mkdir "$final_path" mkdir "$final_path/tmp" ynh_setup_source "$final_path/tmp" cp -a "$final_path/tmp/src/." "$final_path/." -rm -r "$final_path/tmp" +ynh_secure_remove "$final_path/tmp" #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 2e547fb..2605977 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -97,7 +97,7 @@ ynh_print_info "Upgrading source files..." mkdir "$final_path/tmp" ynh_setup_source "$final_path/tmp" cp -a "$final_path/tmp/src/." "$final_path/." -rm -r "$final_path/tmp" +ynh_secure_remove "$final_path/tmp" #================================================= # NGINX CONFIGURATION