From df1005ab85903260136a39eb90826526d4622e96 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 9 Nov 2020 15:58:11 +0100 Subject: [PATCH] rm -rf -> ynh_secure_remove --- scripts/upgrade | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9d2062a..3c36c9d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -123,7 +123,12 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Upgrading Searx..." --weight=7 -rm -r $final_path/lib/python2.7/site-packages/setuptools $final_path/lib/python2.7/site-packages/setuptools-* +ynh_secure_remove $final_path/lib/python2.7/site-packages/setuptools +for FILE in $final_path/lib/python2.7/site-packages/setuptools-* +do + ynh_secure_remove $FILE +done + virtualenv --system-site-packages "$final_path" set +u; source $final_path/bin/activate; set -u pip install -U setuptools