Fix small isssues on install and upgrades

This commit is contained in:
Josué Tille 2021-04-19 18:29:56 +02:00
parent e1efc9e8d1
commit 13a1b1f0b4
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
3 changed files with 11 additions and 2 deletions

View file

@ -39,7 +39,8 @@ install_dependance() {
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 django==2.2.* future mysqlclient pymysql Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha sudo -u $seafile_user pip3 install --user --no-warn-script-location --upgrade future mysqlclient pymysql Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha python3-ldap
# TODO add dependance when upgrade to seafile 8: django==2.2.*
ynh_del_swap ynh_del_swap
} }

View file

@ -8,4 +8,12 @@ spawn $seafile_dir/upgrade/upgrade_7.0_7.1.sh
expect "to contiune" expect "to contiune"
send "\r"; send "\r";
sleep 10;
send "\r";
sleep 1;
send "\r";
interact interact

View file

@ -190,7 +190,7 @@ case $installed_version in
"7.0"* ) "7.0"* )
# Fix file comment # Fix file comment
pushd $final_path/seafile-server-$seafile_version pushd $final_path/seafile-server-$seafile_version
sudo -u $seafile_user $final_path/seafile-server-$seafile_version/seahub.sh python-env seahub/manage.py migrate_file_comment sudo -u $seafile_user $final_path/seafile-server-$seafile_version/seahub.sh python-env python3 seahub/manage.py migrate_file_comment
popd popd
# Update seafile by script # Update seafile by script