Merge pull request #6 from mbugeia/Dev

Update to Seafile 4.4.3
This commit is contained in:
tostaki 2015-10-22 23:34:34 +02:00
commit 4038c1b191
10 changed files with 27 additions and 10 deletions

View file

@ -22,18 +22,18 @@ Upgrade
From command line: From command line:
`sudo yunohost app upgrade -l Seafile https://github.com/mbugeia/seafile_ynh seafile` `sudo yunohost app upgrade -u https://github.com/mbugeia/seafile_ynh seafile`
This will install Seafile v4.3.1 with HTTPS Sync only.
Infos Infos
----- -----
Seafile server v4.3.2 Seafile server v4.4.3
Available for x64, i386, armhf and Raspberry architecture but only tested for x64 (feedback are welcome) Available for x64, i386, and Raspberry architecture but only tested for x64 (feedback are welcome)
In armhf it don't run actually. Please see this issue : https://github.com/haiwen/seafile/issues/1358 Seafile no longer supports armhf architectures AFAIK.
/!\ To login use your yunohost email not your username.
TODO TODO
----- -----

View file

@ -7,7 +7,7 @@ set seafile_data [lindex $argv 2]
set fileserver_port [lindex $argv 3] set fileserver_port [lindex $argv 3]
set db_pwd [lindex $argv 4] set db_pwd [lindex $argv 4]
spawn /var/www/seafile/seafile-server-4.3.2/setup-seafile-mysql.sh spawn /var/www/seafile/seafile-server-4.4.3/setup-seafile-mysql.sh
expect "Press ENTER to continue" expect "Press ENTER to continue"
send "\r"; send "\r";

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.4.3/upgrade/upgrade_4.3_4.4.sh
expect "to contiune"
send "\r";
interact

View file

@ -70,7 +70,7 @@
"en": "What is the server architecture?", "en": "What is the server architecture?",
"fr": "Quelle est l'architecture du serveur ?" "fr": "Quelle est l'architecture du serveur ?"
}, },
"choices": ["x86-64", "i386", "rpi", "armhf"], "choices": ["x86-64", "i386", "rpi"],
"default": "x86-64" "default": "x86-64"
} }
] ]

View file

@ -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")

View file

@ -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