From aa2b593ed9f9389171f32604df2f11341cd77e61 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Sat, 26 Dec 2015 13:44:45 +0100 Subject: [PATCH] Update to seafile v5.0.3 --- scripts/upgrade | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index bafa7b3..b5583a0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -6,7 +6,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.4.3 +seafile_version=5.0.3 final_path=/var/www/$app # extract new version @@ -23,10 +23,12 @@ 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 ../conf/upgrade_5.0.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 +sudo chmod +x $final_path/seafile-server-$seafile_version/upgrade/upgrade_4.4_5.0.sh # do the upgrade case $installed_version in @@ -45,6 +47,10 @@ case $installed_version in # Update seafile by script sudo ../conf/upgrade_4.4.3.exp $root_pwd ;; +"4.4."* ) + # Update seafile by script + sudo ../conf/upgrade_5.0.3.exp $root_pwd +;; esac ## Install webdav and logrotate if not installed