diff --git a/scripts/_common.sh b/scripts/_common.sh index 187449d..36b4d4b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -39,7 +39,8 @@ install_dependance() { 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 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 } diff --git a/scripts/expect_scripts/upgrade_7.1.exp b/scripts/expect_scripts/upgrade_7.1.exp index c0fe127..fbc63c7 100644 --- a/scripts/expect_scripts/upgrade_7.1.exp +++ b/scripts/expect_scripts/upgrade_7.1.exp @@ -8,4 +8,12 @@ spawn $seafile_dir/upgrade/upgrade_7.0_7.1.sh expect "to contiune" send "\r"; +sleep 10; + +send "\r"; + +sleep 1; + +send "\r"; + interact diff --git a/scripts/upgrade b/scripts/upgrade index 833c122..02622cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -190,7 +190,7 @@ case $installed_version in "7.0"* ) # Fix file comment 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 # Update seafile by script