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

Merge pull request #68 from YunoHost-Apps/rm-r

App using rm -rf that was unspotted so far ... to be reported as error by the linter
This commit is contained in:
Alexandre Aubin 2020-11-27 05:42:58 +01:00 committed by GitHub
commit af80ab0820
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