From 41a3da19ea8ea42dd71e2adc81d8f5333ed49a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 15 May 2023 23:10:17 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index df78577..3b9e990 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,6 +51,7 @@ ynh_setup_source --dest_dir="$install_dir/build" --full_replace=1 ynh_setup_source --dest_dir="$install_dir/build_ldap" --source_id="ldap" --full_replace=1 mkdir -p "$install_dir/data" +mkdir -p "$install_dir/live" mkdir -p "$install_dir/live_ldap/data" ynh_secure_remove --file="$install_dir/live/static/" @@ -95,10 +96,10 @@ chmod +x "$install_dir/galene-password-generator" ynh_script_progression --message="Updating a configuration file..." --weight=2 # If password_hash doesn't exist, create it -if [ -z "${password_hash:-}" ]; then - password_hash=$(echo $($install_dir/galene-password-generator $password)) - ynh_app_setting_set --app=$app --key=password_hash --value="$password_hash" -fi +#if [ -z "${password_hash:-}" ]; then +# password_hash=$(echo $($install_dir/galene-password-generator $password)) +# ynh_app_setting_set --app=$app --key=password_hash --value="$password_hash" +#fi # Configure Galène # ynh_add_config --template="config.json" --destination="$install_dir/data/config.json" # chmod 400 "$install_dir/data/config.json"