From ef7eb6f1ebdd38d785ca138b78202b4014c5cac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 27 Apr 2024 22:15:50 +0200 Subject: [PATCH] Fix install bullseye --- scripts/_common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 905255f..528877a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -44,7 +44,11 @@ install_dependance() { chown -R $seafile_user:$seafile_user $final_path # Note that we install imageio to force the dependance, without this imageio 2.8 is installed and it need python3.5 - sudo -u $seafile_user pip3 install --break-system-packages --user --no-warn-script-location --upgrade future mysqlclient PyMySQL 'Pillow<10.0.0' pylibmc captcha Jinja2 SQLAlchemy psd-tools django-pylibmc django-simple-captcha python3-ldap pycryptodome==3.12.0 cffi==1.14.1 + if [ $(lsb_release --codename --short) == bullseye ]; then + sudo -u $seafile_user pip3 install --no-warn-script-location --user --upgrade future mysqlclient PyMySQL 'Pillow<10.0.0' pylibmc captcha Jinja2 SQLAlchemy psd-tools django-pylibmc django-simple-captcha python3-ldap pycryptodome==3.12.0 cffi==1.14.1 + else + sudo -u $seafile_user pip3 install --break-system-packages --user --no-warn-script-location --upgrade future mysqlclient PyMySQL 'Pillow<10.0.0' pylibmc captcha Jinja2 SQLAlchemy psd-tools django-pylibmc django-simple-captcha python3-ldap pycryptodome==3.12.0 cffi==1.14.1 + fi # TODO add dependance when upgrade to seafile 8: django==2.2.* ynh_del_swap }