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