From d7316c70934619f10ab8b31e664e429fed015b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sun, 26 Jan 2020 15:45:28 +0100 Subject: [PATCH] Remove old venv files --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 0552f01..7c10e7b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -136,6 +136,11 @@ then if [ -n "$(uname -m | grep arm)" ] then + # Clean old file, sometime it could make some big issues if we don't do this !! + ynh_secure_remove --file=$final_path/bin + ynh_secure_remove --file=$final_path/lib + ynh_secure_remove --file=$final_path/include + ynh_secure_remove --file=$final_path/share ynh_setup_source --dest_dir=$final_path/ --source_id="armv7_$(lsb_release --codename --short)" else # Install virtualenv if it don't exist