mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Merge pull request #6 from mbugeia/Dev
Update to Seafile 4.4.3
Former-commit-id: 4038c1b191
This commit is contained in:
commit
00e1f025ec
13 changed files with 30 additions and 14 deletions
12
README.md
12
README.md
|
@ -22,18 +22,18 @@ Upgrade
|
|||
|
||||
From command line:
|
||||
|
||||
`sudo yunohost app upgrade -l Seafile https://github.com/mbugeia/seafile_ynh seafile`
|
||||
|
||||
This will install Seafile v4.3.1 with HTTPS Sync only.
|
||||
`sudo yunohost app upgrade -u https://github.com/mbugeia/seafile_ynh seafile`
|
||||
|
||||
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
|
||||
-----
|
||||
|
|
|
@ -7,7 +7,7 @@ set seafile_data [lindex $argv 2]
|
|||
set fileserver_port [lindex $argv 3]
|
||||
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"
|
||||
send "\r";
|
||||
|
|
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.4.3/upgrade/upgrade_4.3_4.4.sh
|
||||
|
||||
expect "to contiune"
|
||||
send "\r";
|
||||
|
||||
interact
|
|
@ -70,7 +70,7 @@
|
|||
"en": "What is the server architecture?",
|
||||
"fr": "Quelle est l'architecture du serveur ?"
|
||||
},
|
||||
"choices": ["x86-64", "i386", "rpi", "armhf"],
|
||||
"choices": ["x86-64", "i386", "rpi"],
|
||||
"default": "x86-64"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
dce9bb444d0d0d24228013ed9182c07835e7b1bf
|
|
@ -1 +0,0 @@
|
|||
74b0849ab352875cb660ef8faa91a291fa41a9a6
|
|
@ -1 +0,0 @@
|
|||
0aae7f1b9a19a98c469da89f395d9c353b5fa050
|
|
@ -1 +0,0 @@
|
|||
a97899f393f9bd2a6e35859d0594569bc7f2c40f
|
1
sources/seafile-server_4.4.3_i386.tar.REMOVED.git-id
Normal file
1
sources/seafile-server_4.4.3_i386.tar.REMOVED.git-id
Normal file
|
@ -0,0 +1 @@
|
|||
6a24a05a0990ca9f47644914c363630a4b416c77
|
1
sources/seafile-server_4.4.3_rpi.tar.REMOVED.git-id
Normal file
1
sources/seafile-server_4.4.3_rpi.tar.REMOVED.git-id
Normal file
|
@ -0,0 +1 @@
|
|||
38803ad3a16da3bbc3a20b4b9fae20ec7709ce22
|
1
sources/seafile-server_4.4.3_x86-64.tar.REMOVED.git-id
Normal file
1
sources/seafile-server_4.4.3_x86-64.tar.REMOVED.git-id
Normal file
|
@ -0,0 +1 @@
|
|||
c2866ea4587005d380327ba095bf1a4ae790bceb
|
Loading…
Add table
Reference in a new issue