Merge pull request #80 from YunoHost-Apps/v8.0

V8.0
This commit is contained in:
Josue-T 2021-07-12 22:17:37 +02:00 committed by GitHub
commit e2336a2774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 37 additions and 46 deletions

View file

@ -14,7 +14,7 @@ Seafile is an open Source Cloud Storage application.
It's a Enterprise file sync and share platform with high reliability and performance. It's a file hosting platform with high reliability and performance. Put files on your own server. Sync and share files across different devices, or access all the files as a virtual disk. It's a Enterprise file sync and share platform with high reliability and performance. It's a file hosting platform with high reliability and performance. Put files on your own server. Sync and share files across different devices, or access all the files as a virtual disk.
**Shipped version:** 7.1.5 **Shipped version:** 8.0.5
Screenshots Screenshots
----------- -----------

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/haiwen/seafile-rpi/releases/download/v7.1.5/seafile-server-7.1.5-buster-armv7.tar.gz SOURCE_URL=https://github.com/haiwen/seafile-rpi/releases/download/v8.0.5/seafile-server-8.0.5-buster-armv7l.tar.gz
SOURCE_SUM=4baec21c1acaec6f50c7a1b229a728417d8fbf87fe3be98f128bc9d2ad399681 SOURCE_SUM=53a909c0bcb796b21fec3518e9092ec20f8a8b933dc61ea26f3a04aab66efc79
# (Optional) Program to check the integrity (sha256sum, md5sum...) # (Optional) Program to check the integrity (sha256sum, md5sum...)
# default: sha256 # default: sha256
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/haiwen/seafile-rpi/releases/download/v7.1.5/seafile-server-7.1.5-buster-armv7.tar.gz SOURCE_URL=https://github.com/haiwen/seafile-rpi/releases/download/v8.0.5/seafile-server-8.0.5-buster-armv7l.tar.gz
SOURCE_SUM=4baec21c1acaec6f50c7a1b229a728417d8fbf87fe3be98f128bc9d2ad399681 SOURCE_SUM=53a909c0bcb796b21fec3518e9092ec20f8a8b933dc61ea26f3a04aab66efc79
# (Optional) Program to check the integrity (sha256sum, md5sum...) # (Optional) Program to check the integrity (sha256sum, md5sum...)
# default: sha256 # default: sha256
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum

View file

@ -30,21 +30,13 @@ location __PATH__/media/ {
} }
location /seafdav { location /seafdav {
fastcgi_pass 127.0.0.1:__WEBDAV_PORT__; proxy_pass http://127.0.0.1:__WEBDAV_PORT__/seafdav;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; proxy_set_header Host $host;
fastcgi_param PATH_INFO $fastcgi_script_name; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
fastcgi_param SERVER_PROTOCOL $server_protocol; proxy_set_header X-Forwarded-Host $server_name;
fastcgi_param QUERY_STRING $query_string; proxy_set_header X-Forwarded-Proto $scheme;
fastcgi_param REQUEST_METHOD $request_method; proxy_read_timeout 1200s;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS on;
client_max_body_size 0; client_max_body_size 0;
access_log /var/log/nginx/seafdav.access.log; access_log /var/log/nginx/seafdav.access.log;

View file

@ -1,21 +1,13 @@
location /seafdav { location /seafdav {
fastcgi_pass 127.0.0.1:WEBDAV_PORT; proxy_pass http://127.0.0.1:__WEBDAV_PORT__/seafdav;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; proxy_set_header Host $host;
fastcgi_param PATH_INFO $fastcgi_script_name; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
fastcgi_param SERVER_PROTOCOL $server_protocol; proxy_set_header X-Forwarded-Host $server_name;
fastcgi_param QUERY_STRING $query_string; proxy_set_header X-Forwarded-Proto $scheme;
fastcgi_param REQUEST_METHOD $request_method; proxy_read_timeout 1200s;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS on;
client_max_body_size 0; client_max_body_size 0;
access_log /var/log/nginx/seafdav.access.log; access_log /var/log/nginx/seafdav.access.log;
error_log /var/log/nginx/seafdav.error.log; error_log /var/log/nginx/seafdav.error.log;
} }

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_7.1.5_x86-64.tar.gz SOURCE_URL=https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.5_x86-64.tar.gz
SOURCE_SUM=edf020de2324be33df3f6854c6383affca088807bfc1e27a375fbb0f44af0cb0 SOURCE_SUM=4065e877e9675afba958aa1007db0d3a53949f8987d7f9849dfa29a6a13a06bf
# (Optional) Program to check the integrity (sha256sum, md5sum...) # (Optional) Program to check the integrity (sha256sum, md5sum...)
# default: sha256 # default: sha256
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum

View file

@ -4,7 +4,7 @@
"packaging_format": 1, "packaging_format": 1,
"license": "AGPL-3.0,Apache-2.0,MIT,GPL-2.0", "license": "AGPL-3.0,Apache-2.0,MIT,GPL-2.0",
"url": "https://www.seafile.com", "url": "https://www.seafile.com",
"version": "7.1.5~ynh1", "version": "8.0.5~ynh1",
"description": { "description": {
"en": "Open Source Cloud Storage", "en": "Open Source Cloud Storage",
"fr": "Stockage Cloud Open Source" "fr": "Stockage Cloud Open Source"

View file

@ -36,7 +36,7 @@ install_dependance() {
libjpeg62-turbo-dev zlib1g-dev # For building pillow libjpeg62-turbo-dev zlib1g-dev # For building pillow
ynh_add_swap 2000 ynh_add_swap 2000
# We need to do that because we can have some issue about the permission access to the pip cache without this # We need to do that because we can have some issue about the permission access to the pip cache without this
set_permission chown -R $seafile_user:$seafile_user $final_path
# Note that we install imageio to force the dependance, without this imageio 2.8 is installed and it need python3.5 # Note that we install imageio to force the dependance, without this imageio 2.8 is installed and it need python3.5
sudo -u $seafile_user pip3 install --user --no-warn-script-location --upgrade future mysqlclient pymysql Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha python3-ldap sudo -u $seafile_user pip3 install --user --no-warn-script-location --upgrade future mysqlclient pymysql Pillow pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha python3-ldap
@ -53,7 +53,12 @@ mv_expect_scripts() {
set_permission() { set_permission() {
chown -R $seafile_user:$seafile_user $final_path chown -R $seafile_user:$seafile_user $final_path
chmod -R o= $final_path chmod -R g-wx,o= $final_path
setfacl -m user:www-data:rX $final_path
setfacl -m user:www-data:rX $final_path/seafile-server-$seafile_version
setfacl -m user:www-data:rX $final_path/seafile-server-latest/seahub
setfacl -R -m user:www-data:rX $final_path/seafile-server-latest/seahub/media
# check that this directory exist because in some really old install the data could still be in the main seafile directory # check that this directory exist because in some really old install the data could still be in the main seafile directory
# We also check at the install time when data directory is not already initialised # We also check at the install time when data directory is not already initialised
if [ -e /home/yunohost.app/seafile-data ]; then if [ -e /home/yunohost.app/seafile-data ]; then

View file

@ -20,6 +20,7 @@ ynh_print_info --message="Loading installation settings..."
domain=$(ynh_app_setting_get --app $app --key domain) domain=$(ynh_app_setting_get --app $app --key domain)
db_pwd=$(ynh_app_setting_get --app $app --key mysqlpwd) db_pwd=$(ynh_app_setting_get --app $app --key mysqlpwd)
final_path=$(ynh_app_setting_get --app $app --key final_path) final_path=$(ynh_app_setting_get --app $app --key final_path)
seafile_version=$(ynh_app_upstream_version)
seafile_user=$app seafile_user=$app
if [[ ! "$(systemctl status seafile)" =~ "Active: inactive (dead)" ]] || [[ ! "$(systemctl status seahub)" =~ "Active: failed (Result: signal)" ]]; then if [[ ! "$(systemctl status seafile)" =~ "Active: inactive (dead)" ]] || [[ ! "$(systemctl status seahub)" =~ "Active: failed (Result: signal)" ]]; then

View file

@ -22,6 +22,7 @@ path_url=$(ynh_normalize_url_path --path_url $(ynh_app_setting_get --app $app --
seafile_data=/home/yunohost.app/seafile-data seafile_data=/home/yunohost.app/seafile-data
db_pwd=$(ynh_app_setting_get --app $app --key mysqlpwd) db_pwd=$(ynh_app_setting_get --app $app --key mysqlpwd)
final_path=$(ynh_app_setting_get --app $app --key final_path) final_path=$(ynh_app_setting_get --app $app --key final_path)
seafile_version=$(ynh_app_upstream_version)
seafile_user=$app seafile_user=$app
architecture=$(ynh_detect_arch) architecture=$(ynh_detect_arch)

View file

@ -214,10 +214,10 @@ EOF
fi fi
ln -s $seafile_data $final_path/seafile-data ln -s $seafile_data $final_path/seafile-data
;& ;&
# "7.1."* ) "7.1."* )
# sudo -u $seafile_user $expect_scripts_dir/upgrade_8.0.exp $final_path/seafile-server-$seafile_version sudo -u $seafile_user $expect_scripts_dir/upgrade_8.0.exp $final_path/seafile-server-$seafile_version
# echo "FILTER = permission=cn=$app.main,ou=permission,dc=yunohost,dc=org" | tee -a $final_path/conf/ccnet.conf echo "FILTER = permission=cn=$app.main,ou=permission,dc=yunohost,dc=org" | tee -a $final_path/conf/ccnet.conf
# ;& ;&
esac esac
sudo -u $seafile_user $expect_scripts_dir/minor-upgrade.exp $final_path/seafile-server-$seafile_version sudo -u $seafile_user $expect_scripts_dir/minor-upgrade.exp $final_path/seafile-server-$seafile_version
@ -314,7 +314,7 @@ if ! ynh_permission_exists --permission=file_server; then
else else
ynh_permission_url --permission=file_server --url=$domain/seafhttp --auth_header=false ynh_permission_url --permission=file_server --url=$domain/seafhttp --auth_header=false
ynh_permission_update --permission=file_server --label="File server" --show_tile=false --protected=true ynh_permission_update --permission=file_server --label="File server" --show_tile=false --protected=true
ynh_permission_url --permission=webdav --url=$domain/seafhttp --auth_header=false ynh_permission_url --permission=webdav --url=$domain/seafdav --auth_header=false
ynh_permission_update --permission=webdav --label="Webdav" --show_tile=false --protected=true ynh_permission_update --permission=webdav --label="Webdav" --show_tile=false --protected=true
ynh_permission_url --permission=media --url=/media --auth_header=true ynh_permission_url --permission=media --url=/media --auth_header=true
ynh_permission_update --permission=media --label="Media" --show_tile=false --protected=true ynh_permission_update --permission=media --label="Media" --show_tile=false --protected=true