mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix small isssues on install and upgrades
This commit is contained in:
parent
e1efc9e8d1
commit
13a1b1f0b4
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue