mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
commit
4038c1b191
10 changed files with 27 additions and 10 deletions
12
README.md
12
README.md
|
@ -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
|
||||||
-----
|
-----
|
||||||
|
|
|
@ -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
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?",
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -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…
Reference in a new issue