Fix install

This commit is contained in:
Josué Tille 2023-09-19 12:04:17 +02:00
parent 99c006ca04
commit 3ce35d35ca
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -39,7 +39,7 @@ install_dependance() {
# We need to do that because we can have some issue about the permission access to the pip cache without this # We need to do that because we can have some issue about the permission access to the pip cache without this
set_permission set_permission
# Note that we install imageio to force the dependance, without this imageio 2.8 is installed and it need python3.5 # 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 Pillow pylibmc captcha jinja2 sqlalchemy psd-tools \ 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 \ django-pylibmc django-simple-captcha python3-ldap \
pylibmc django-pylibmc # Memcached support pylibmc django-pylibmc # Memcached support
ynh_del_swap ynh_del_swap
@ -48,7 +48,7 @@ install_dependance() {
set_permission() { set_permission() {
chown -R $seafile_user:$seafile_user $final_path chown -R $seafile_user:$seafile_user $final_path
# check that this directory exist because in some really old install the data could still be in the main seafile directory # check that this directory exist because in some really old install the data could still be in the main seafile directory
# We also check at the install time when data directory is not already initialised # We also check at the install time when data directory is not already initialised
test -e /home/yunohost.app/seafile-data && chown -R $seafile_user:$seafile_user /home/yunohost.app/seafile-data test -e /home/yunohost.app/seafile-data && chown -R $seafile_user:$seafile_user /home/yunohost.app/seafile-data
# Well need to put this here because if test return false, set_permission also return false and the install fail # Well need to put this here because if test return false, set_permission also return false and the install fail
true true