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