From 5720cc8960662c6c23584db377bd79b4c024b105 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 11 May 2024 13:10:36 +0200 Subject: [PATCH] Fix change_url after config file change --- doc/{POST_UPGRADE.d => PRE_UPGRADE.d}/1.4.0~ynh1.md | 0 scripts/change_url | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename doc/{POST_UPGRADE.d => PRE_UPGRADE.d}/1.4.0~ynh1.md (100%) diff --git a/doc/POST_UPGRADE.d/1.4.0~ynh1.md b/doc/PRE_UPGRADE.d/1.4.0~ynh1.md similarity index 100% rename from doc/POST_UPGRADE.d/1.4.0~ynh1.md rename to doc/PRE_UPGRADE.d/1.4.0~ynh1.md diff --git a/scripts/change_url b/scripts/change_url index 87a8324..4a5dedc 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -34,9 +34,9 @@ ynh_script_progression --message="Updating the configuration file..." --weight=1 if [ $change_path -eq 1 ] then - ynh_replace_string --match_string="base_url = .*" --replace_string="base_url = ${new_path:-/}" --target_file="$install_dir/data/config/config.ini" + ynh_replace_string --match_string="base_url: .*" --replace_string="base_url: ${new_path:-/}" --target_file="$install_dir/data/config/config.yaml" - ynh_store_file_checksum --file="$install_dir/data/config/config.ini" + ynh_store_file_checksum --file="$install_dir/data/config/config.yaml" fi #=================================================