diff --git a/README.md b/README.md index 9d42563..3633d85 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in MinIO is a High Performance Object Storage released under GNU Affero General Public License v3.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. - -**Shipped version:** 2023.01.31~ynh1 +**Shipped version:** 2023.02.22~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 37aae04..12dd81d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po MinIO is a High Performance Object Storage released under GNU Affero General Public License v3.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. -**Version incluse :** 2023.01.31~ynh1 +**Version incluse :** 2023.02.22~ynh1 ## Captures d’écran diff --git a/check_process b/check_process index fa8fdb1..6cdf741 100644 --- a/check_process +++ b/check_process @@ -12,7 +12,6 @@ setup_private=1 setup_public=1 upgrade=1 - upgrade=1 from_commit=1ef6a65e00dbb39dac8919cf6c5f4313fea8462e backup_restore=1 multi_instance=0 port_already_use=0 diff --git a/conf/amd64.src b/conf/amd64.src index 302272f..55e14ad 100644 --- a/conf/amd64.src +++ b/conf/amd64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.min.io/server/minio/release/linux-amd64/archive/minio.RELEASE.2023-01-31T02-24-19Z -SOURCE_SUM=c7766f66f0192a6626cb4e8259f6308caa30007b0c7e98088cb2077be183424f +SOURCE_URL=https://dl.min.io/server/minio/release/linux-amd64/archive/minio.RELEASE.2023-02-22T18-23-45Z +SOURCE_SUM=9e27137008ee2e233f72dc5d774dec7cbb1175280e9fde20f1ccbe61365edc2f SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FILENAME=minio diff --git a/conf/arm64.src b/conf/arm64.src index 58763fa..e040d83 100644 --- a/conf/arm64.src +++ b/conf/arm64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.min.io/server/minio/release/linux-arm64/archive/minio.RELEASE.2023-01-31T02-24-19Z -SOURCE_SUM=2ede605a84e658993e6868b5a1ab0cee493906901e9cc150153adbf0913fcfcc +SOURCE_URL=https://dl.min.io/server/minio/release/linux-arm64/archive/minio.RELEASE.2023-02-22T18-23-45Z +SOURCE_SUM=845b8cd10199ca2bcee369b5b3fe82e13b5889b7040bff013780efc8c0a2bca4 SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FILENAME=minio diff --git a/conf/mc_amd64.src b/conf/mc_amd64.src index a32de2d..811390f 100644 --- a/conf/mc_amd64.src +++ b/conf/mc_amd64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.min.io/client/mc/release/linux-amd64/archive/mc.RELEASE.2023-01-28T20-29-38Z -SOURCE_SUM=ecd7b92a7a5c6e74db16fcd19950a28fa8ccb1fcc343ff37050787da346f7d4e +SOURCE_URL=https://dl.min.io/client/mc/release/linux-amd64/archive/mc.RELEASE.2023-02-16T19-20-11Z +SOURCE_SUM=04aee1a04a513a293af5ceff699113c791a54309cecd97b2dd71f111dcc45f7b SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FILENAME=mc diff --git a/conf/mc_arm64.src b/conf/mc_arm64.src index 610837a..cb88b4b 100644 --- a/conf/mc_arm64.src +++ b/conf/mc_arm64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://dl.min.io/client/mc/release/linux-arm64/archive/mc.RELEASE.2023-01-28T20-29-38Z -SOURCE_SUM=319fb47eb7f48e3e6efff1151bb82d44463d5c23f94495146c813f9ed2531a4b +SOURCE_URL=https://dl.min.io/client/mc/release/linux-arm64/archive/mc.RELEASE.2023-02-16T19-20-11Z +SOURCE_SUM=df56bc161266efadc4cb722f4afb909738ff1eb5200f1446bcdb75fe4c272374 SOURCE_SUM_PRG=sha256sum SOURCE_IN_SUBDIR=false SOURCE_FILENAME=mc diff --git a/manifest.json b/manifest.json index effa728..096cb16 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "High Performance, Kubernetes Native Object Storage", "fr": "Serveur de stockage d'objets hautes performances" }, - "version": "2023.01.31~ynh1", + "version": "2023.02.22~ynh1", "url": "https://min.io/", "upstream": { "license": "AGPL-3.0-only", diff --git a/scripts/backup b/scripts/backup index 67278fd..059aa77 100755 --- a/scripts/backup +++ b/scripts/backup @@ -46,6 +46,7 @@ ynh_backup --src_path="$final_path" # BACKUP THE DATA DIR #================================================= +ynh_print_info --message="WARNING : by default, the buckets are not saved (use is big option)..." ynh_backup --src_path="$datadir" --is_big #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a187156..d11cf75 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,6 +49,49 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors +#================================================= +# ENSURE DOWNWARD COMPATIBILITY +#================================================= +ynh_script_progression --message="Ensuring downward compatibility..." + +if ynh_compare_current_package_version --comparison le --version 2023.02.22~ynh1 +then + ynh_script_progression --message="Mirroring old Filesystem to secure MinIO start" + tmp="/tmp/minio" + mkdir "$tmp" + chown -R $app:www-data "$tmp" + pushd "$datadir/" + for d in * ; do + if [ "$d" == "*" ] + then + ynh_script_progression --message="No buckets to migrate" + else + ynh_script_progression --message="Moving $d..." + ynh_exec_warn_less sudo -u $app $mc_path/mc mirror --preserve "minio/$d" "$tmp/$d" + fi + done + if ynh_compare_current_package_version --comparison eq --version 2022.09.01~ynh1 + then + ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the Yunohost forum" + fi + if ynh_compare_current_package_version --comparison eq --version 2022.11.11~ynh1 + then + ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the Yunohost forum" + fi + if ynh_compare_current_package_version --comparison eq --version 2023.01.11~ynh1 + then + ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the Yunohost forum" + fi + popd + ynh_secure_remove --file="$datadir" + ynh_exec_warn_less mkdir "$datadir" + chmod 750 "$datadir" + chmod -R o-rwx "$datadir" + chown -R $app:www-data "$datadir" +else + ynh_script_progression --message="No migration to be done" +fi + #================================================= # STANDARD UPGRADE STEPS #================================================= @@ -128,23 +171,6 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 yunohost service add $app --description="A High Performance, Kubernetes Native Object Storage" --log="/var/log/$app/$app.log" -#================================================= -# ENSURE DOWNWARD COMPATIBILITY -#================================================= -ynh_script_progression --message="Ensuring downward compatibility..." - -if ynh_compare_current_package_version --comparison lt --version 2022.12.12~ynh1 -then - ynh_script_progression --message="Moving old Filesystem to secure MinIO start" - tmp="/tmp/minio" - ynh_exec_warn_less cp -Ra "$datadir" "$tmp" - ynh_secure_remove --file="$datadir" - ynh_exec_warn_less mkdir "$datadir" - chmod 750 "$datadir" - chmod -R o-rwx "$datadir" - chown -R $app:www-data "$datadir" -fi - #================================================= # START SYSTEMD SERVICE #================================================= @@ -173,7 +199,7 @@ popd #================================================= ynh_script_progression --message="Ensuring downward compatibility..." -if ynh_compare_current_package_version --comparison lt --version 2022.12.12~ynh1 +if ynh_compare_current_package_version --comparison le --version 2023.02.22~ynh1 then ynh_script_progression --message="Migration from Filesystem to Single-Node Single-Drive mode" pushd "$tmp/"