From fcb3c7d98e74a1f7531f890c709c17bdcddfa01a Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Sat, 20 May 2023 13:17:54 +0200 Subject: [PATCH] v2 --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 010f215..5ae09ba 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,6 +59,12 @@ else ynh_script_progression --message="No migration to be done" fi +# Retrieve the password from the .env file +if [ -z $password ]; +then + password = $(ynh_read_var_in_file --file="$install_dir/.env" --key="MINIO_ROOT_PASSWORD") +fi + #================================================= # STANDARD UPGRADE STEPS #=================================================