1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minio_ynh.git synced 2024-09-03 19:46:18 +02:00
This commit is contained in:
Éric Gaspar 2023-11-24 22:17:25 +01:00
parent 71ee448214
commit 9ad81dc9b0
2 changed files with 4 additions and 6 deletions

View file

@ -4,8 +4,6 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
# dependencies used by the app
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS
#================================================= #=================================================

View file

@ -38,15 +38,15 @@ then
done done
if ynh_compare_current_package_version --comparison eq --version 2022.09.01~ynh1 if ynh_compare_current_package_version --comparison eq --version 2022.09.01~ynh1
then then
ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the Yunohost forum" ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the YunoHost forum"
fi fi
if ynh_compare_current_package_version --comparison eq --version 2022.11.11~ynh1 if ynh_compare_current_package_version --comparison eq --version 2022.11.11~ynh1
then then
ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the Yunohost forum" ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the YunoHost forum"
fi fi
if ynh_compare_current_package_version --comparison eq --version 2023.01.11~ynh1 if ynh_compare_current_package_version --comparison eq --version 2023.01.11~ynh1
then then
ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the Yunohost forum" ynh_die --message="Sorry, your MinIO instance requires a complex manual migration. Please contact Limezy on the YunoHost forum"
fi fi
popd popd
ynh_secure_remove --file="$data_dir" ynh_secure_remove --file="$data_dir"
@ -112,7 +112,7 @@ yunohost service add $app --description="A High Performance, Kubernetes Native O
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." ynh_script_progression --message="Updating a configuration file..."
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" ynh_add_config --template=".env" --destination="$install_dir/.env"
chmod 400 "$install_dir/.env" chmod 400 "$install_dir/.env"
chown $app:$app "$install_dir/.env" chown $app:$app "$install_dir/.env"