Update to Seafile 4.4.3

This commit is contained in:
mbugeia 2015-10-22 22:38:59 +02:00
parent 168bf5c3af
commit 2f5dcdac24
7 changed files with 19 additions and 2 deletions

11
conf/upgrade_4.4.3.exp Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/expect
set timeout 5
set mysql_password [lindex $argv 0]
spawn /var/www/seafile/seafile-server-4.3.2/upgrade/upgrade_4.3_4.4.sh
expect "to contiune"
send "\r";
interact

View file

@ -9,7 +9,7 @@ is_public=$6
architecture=$7
final_path=/var/www/seafile
seafile_data=/home/yunohost.app/seafile-data
seafile_version=4.3.2
seafile_version=4.4.3
# Retrieve admin email
admin_email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g")

View file

@ -5,7 +5,7 @@ app=seafile
installed_version=$(sudo yunohost app setting $app installed_version)
architecture=$(sudo yunohost app setting $app architecture)
root_pwd=$(sudo cat /etc/yunohost/mysql)
seafile_version=4.3.2
seafile_version=4.4.3
final_path=/var/www/$app
# extract new version
@ -21,9 +21,11 @@ sudo service seafile-server stop
sudo chmod +x ../conf/upgrade_4.1.1.exp
sudo chmod +x ../conf/upgrade_4.2.1.exp
sudo chmod +x ../conf/upgrade_4.3.2.exp
sudo chmod +x ../conf/upgrade_4.4.3.exp
sudo chmod +x $final_path/seafile-server-$seafile_version/upgrade/upgrade_4.0_4.1.sh
sudo chmod +x $final_path/seafile-server-$seafile_version/upgrade/upgrade_4.1_4.2.sh
sudo chmod +x $final_path/seafile-server-$seafile_version/upgrade/upgrade_4.2_4.3.sh
sudo chmod +x $final_path/seafile-server-$seafile_version/upgrade/upgrade_4.3_4.4.sh
# do the upgrade
case $installed_version in
@ -38,6 +40,10 @@ case $installed_version in
sudo ../conf/upgrade_4.2.1.exp $root_pwd
sudo ../conf/upgrade_4.3.2.exp $root_pwd
;;
"4.3."* )
# Update seafile by script
sudo ../conf/upgrade_4.4.3.exp $root_pwd
;;
esac
## Install webdav and logrotate if not installed