diff --git a/conf/upgrade_4.4.3.exp b/conf/upgrade_4.4.3.exp new file mode 100644 index 0000000..b87ec13 --- /dev/null +++ b/conf/upgrade_4.4.3.exp @@ -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 \ No newline at end of file diff --git a/scripts/install b/scripts/install index 2b618f7..f0bcaf5 100644 --- a/scripts/install +++ b/scripts/install @@ -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") diff --git a/scripts/upgrade b/scripts/upgrade index 3653788..4dd8934 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 diff --git a/sources/seafile-server_4.3.2_armhf.tar b/sources/seafile-server_4.3.2_armhf.tar deleted file mode 100644 index dce9bb4..0000000 Binary files a/sources/seafile-server_4.3.2_armhf.tar and /dev/null differ diff --git a/sources/seafile-server_4.3.2_i386.tar b/sources/seafile-server_4.4.3_i386.tar similarity index 68% rename from sources/seafile-server_4.3.2_i386.tar rename to sources/seafile-server_4.4.3_i386.tar index 74b0849..6a24a05 100644 Binary files a/sources/seafile-server_4.3.2_i386.tar and b/sources/seafile-server_4.4.3_i386.tar differ diff --git a/sources/seafile-server_4.3.2_x86-64.tar b/sources/seafile-server_4.4.3_x86-64.tar similarity index 69% rename from sources/seafile-server_4.3.2_x86-64.tar rename to sources/seafile-server_4.4.3_x86-64.tar index a97899f..c2866ea 100644 Binary files a/sources/seafile-server_4.3.2_x86-64.tar and b/sources/seafile-server_4.4.3_x86-64.tar differ diff --git a/sources/seafile-server_4.3.2_rpi.tar b/sources/seafile-server_stable_4.4.3_pi.tar similarity index 68% rename from sources/seafile-server_4.3.2_rpi.tar rename to sources/seafile-server_stable_4.4.3_pi.tar index 0aae7f1..38803ad 100644 Binary files a/sources/seafile-server_4.3.2_rpi.tar and b/sources/seafile-server_stable_4.4.3_pi.tar differ