mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Update to Seafile 4.4.3
This commit is contained in:
parent
168bf5c3af
commit
2f5dcdac24
7 changed files with 19 additions and 2 deletions
11
conf/upgrade_4.4.3.exp
Normal file
11
conf/upgrade_4.4.3.exp
Normal 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
|
|
@ -9,7 +9,7 @@ is_public=$6
|
||||||
architecture=$7
|
architecture=$7
|
||||||
final_path=/var/www/seafile
|
final_path=/var/www/seafile
|
||||||
seafile_data=/home/yunohost.app/seafile-data
|
seafile_data=/home/yunohost.app/seafile-data
|
||||||
seafile_version=4.3.2
|
seafile_version=4.4.3
|
||||||
|
|
||||||
# Retrieve admin email
|
# Retrieve admin email
|
||||||
admin_email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g")
|
admin_email=$(sudo yunohost user info $admin | grep mail: | sed "s/mail: //g")
|
||||||
|
|
|
@ -5,7 +5,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.3.2
|
seafile_version=4.4.3
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
|
|
||||||
# extract new version
|
# 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.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 $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
|
||||||
|
|
||||||
# do the upgrade
|
# do the upgrade
|
||||||
case $installed_version in
|
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.2.1.exp $root_pwd
|
||||||
sudo ../conf/upgrade_4.3.2.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
|
esac
|
||||||
|
|
||||||
## Install webdav and logrotate if not installed
|
## Install webdav and logrotate if not installed
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue