From 8d41482c2bcaac37bb038c700eecbf5aa43c93bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 27 Apr 2024 10:16:06 +0200 Subject: [PATCH] Fix install bullseye --- scripts/_common.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index e914e2f..d9303fb 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -39,9 +39,15 @@ install_dependance() { # We need to do that because we can have some issue about the permission access to the pip cache without this set_permission # 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 --user --upgrade --break-system-packages 'Pillow<10.0.0' pylibmc captcha jinja2 sqlalchemy psd-tools \ - django-pylibmc django-simple-captcha python3-ldap \ - pylibmc django-pylibmc # Memcached support + if [ $(lsb_release --codename --short) == bullseye ]; then + sudo -u $seafile_user pip3 install --user --upgrade 'Pillow<10.0.0' pylibmc captcha jinja2 sqlalchemy psd-tools \ + django-pylibmc django-simple-captcha python3-ldap \ + pylibmc django-pylibmc # Memcached support + else + sudo -u $seafile_user pip3 install --user --upgrade --break-system-packages 'Pillow<10.0.0' pylibmc captcha jinja2 sqlalchemy psd-tools \ + django-pylibmc django-simple-captcha python3-ldap \ + pylibmc django-pylibmc # Memcached support + fi ynh_del_swap }