From 06f014c0e6ca18b2adf8902fd6172503161f9e72 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 14 Apr 2022 21:25:26 +0200 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index b7612d2..66d4b00 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -230,7 +230,7 @@ then ynh_secure_remove --file="/opt/yunohost/$app" virtualenv /opt/yunohost/$app version=$(ynh_app_setting_get $app version $version) - bash -c "source /opt/yunohost/radicale/bin/activate && pip install radicale==$version python-ldap" + /opt/yunohost/$app/bin/pip install radicale==$version python-ldap # regex.py file is patched to fix the awful commit e807c3d35bea9cfcfcacac83b1b17d748ea15a39 that stop the reading of "rights" file after the first match. mv "$final_path/regex.py" /opt/yunohost/$app/lib/python*/site-packages/radicale/rights/regex.py