diff --git a/README.md b/README.md index 9d40391..4681356 100644 --- a/README.md +++ b/README.md @@ -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. -**Shipped version:** 7.1.5 +**Shipped version:** 8.0.5 Screenshots ----------- diff --git a/conf/arm.src b/conf/arm.src index cc50123..de18587 100644 --- a/conf/arm.src +++ b/conf/arm.src @@ -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_SUM=4baec21c1acaec6f50c7a1b229a728417d8fbf87fe3be98f128bc9d2ad399681 +SOURCE_URL=https://github.com/haiwen/seafile-rpi/releases/download/v8.0.5/seafile-server-8.0.5-buster-armv7.tar.gz +SOURCE_SUM=3a2117d573b54c46a4d1e937e4679601b7b9bb73e8f0b379cd94a39c6470c5c6 # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/conf/arm64.src b/conf/arm64.src index cc50123..de18587 100644 --- a/conf/arm64.src +++ b/conf/arm64.src @@ -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_SUM=4baec21c1acaec6f50c7a1b229a728417d8fbf87fe3be98f128bc9d2ad399681 +SOURCE_URL=https://github.com/haiwen/seafile-rpi/releases/download/v8.0.5/seafile-server-8.0.5-buster-armv7.tar.gz +SOURCE_SUM=3a2117d573b54c46a4d1e937e4679601b7b9bb73e8f0b379cd94a39c6470c5c6 # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/conf/x86-64.src b/conf/x86-64.src index 5efd091..84ccc51 100644 --- a/conf/x86-64.src +++ b/conf/x86-64.src @@ -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_SUM=edf020de2324be33df3f6854c6383affca088807bfc1e27a375fbb0f44af0cb0 +SOURCE_URL=https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_8.0.5_x86-64.tar.gz +SOURCE_SUM=4065e877e9675afba958aa1007db0d3a53949f8987d7f9849dfa29a6a13a06bf # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/manifest.json b/manifest.json index afeb0a3..57737cd 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "packaging_format": 1, "license": "AGPL-3.0,Apache-2.0,MIT,GPL-2.0", "url": "https://www.seafile.com", - "version": "7.1.5~ynh1", + "version": "8.0.5~ynh1", "description": { "en": "Open Source Cloud Storage", "fr": "Stockage Cloud Open Source" diff --git a/scripts/_common.sh b/scripts/_common.sh index d82f45a..8fe4517 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -36,7 +36,7 @@ install_dependance() { libjpeg62-turbo-dev zlib1g-dev # For building pillow 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 - 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 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() { 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 # We also check at the install time when data directory is not already initialised if [ -e /home/yunohost.app/seafile-data ]; then diff --git a/scripts/backup b/scripts/backup index 4492a2d..f051206 100644 --- a/scripts/backup +++ b/scripts/backup @@ -20,6 +20,7 @@ ynh_print_info --message="Loading installation settings..." domain=$(ynh_app_setting_get --app $app --key domain) db_pwd=$(ynh_app_setting_get --app $app --key mysqlpwd) final_path=$(ynh_app_setting_get --app $app --key final_path) +seafile_version=$(ynh_app_upstream_version) seafile_user=$app if [[ ! "$(systemctl status seafile)" =~ "Active: inactive (dead)" ]] || [[ ! "$(systemctl status seahub)" =~ "Active: failed (Result: signal)" ]]; then diff --git a/scripts/restore b/scripts/restore index 246a38d..60adb58 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 db_pwd=$(ynh_app_setting_get --app $app --key mysqlpwd) final_path=$(ynh_app_setting_get --app $app --key final_path) +seafile_version=$(ynh_app_upstream_version) seafile_user=$app architecture=$(ynh_detect_arch) diff --git a/scripts/upgrade b/scripts/upgrade index 02622cc..ab78fc3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -214,10 +214,10 @@ EOF fi ln -s $seafile_data $final_path/seafile-data ;& -# "7.1."* ) -# 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 -# ;& +"7.1."* ) + 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 +;& esac sudo -u $seafile_user $expect_scripts_dir/minor-upgrade.exp $final_path/seafile-server-$seafile_version