mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Update to seafile v5.0.3
This commit is contained in:
parent
c4d7ae40fc
commit
aa2b593ed9
1 changed files with 7 additions and 1 deletions
|
@ -6,7 +6,7 @@ app=seafile
|
||||||
installed_version=$(sudo yunohost app setting $app installed_version)
|
installed_version=$(sudo yunohost app setting $app installed_version)
|
||||||
architecture=$(sudo yunohost app setting $app architecture)
|
architecture=$(sudo yunohost app setting $app architecture)
|
||||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||||
seafile_version=4.4.3
|
seafile_version=5.0.3
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
|
|
||||||
# extract new version
|
# 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.2.1.exp
|
||||||
sudo chmod +x ../conf/upgrade_4.3.2.exp
|
sudo chmod +x ../conf/upgrade_4.3.2.exp
|
||||||
sudo chmod +x ../conf/upgrade_4.4.3.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.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.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.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.3_4.4.sh
|
||||||
|
sudo chmod +x $final_path/seafile-server-$seafile_version/upgrade/upgrade_4.4_5.0.sh
|
||||||
|
|
||||||
# do the upgrade
|
# do the upgrade
|
||||||
case $installed_version in
|
case $installed_version in
|
||||||
|
@ -45,6 +47,10 @@ case $installed_version in
|
||||||
# Update seafile by script
|
# Update seafile by script
|
||||||
sudo ../conf/upgrade_4.4.3.exp $root_pwd
|
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
|
esac
|
||||||
|
|
||||||
## Install webdav and logrotate if not installed
|
## Install webdav and logrotate if not installed
|
||||||
|
|
Loading…
Reference in a new issue