Fix install bullseye

This commit is contained in:
Josué Tille 2024-04-27 10:16:06 +02:00
parent d9381d3891
commit 8d41482c2b
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -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
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
}