1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minio_ynh.git synced 2024-09-03 19:46:18 +02:00

Update upgrade

This commit is contained in:
Limezy 2023-01-27 00:55:19 +07:00
parent 387cc517bb
commit 8fddb4b570

View file

@ -49,6 +49,18 @@ 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 ["yunohost app info minio | grep -oEi [0-9]{4}" == "2022"]
then
ynh_script_progression --message="Migration from Filesystem to Single-Node Single-Drive mode"
else
ynh_script_progression --message="No migration required"
fi
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -58,11 +70,6 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..."
#=================================================
# CREATE DEDICATED USER
#=================================================