1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

rm -rf -> ynh_secure_remove

This commit is contained in:
Alexandre Aubin 2020-11-09 15:58:11 +01:00 committed by GitHub
parent 06ff548a76
commit df1005ab85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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