From 4e7b4b9d47e6e449b51a057c821432b9c216cc34 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Thu, 27 Jul 2023 20:53:49 +0200 Subject: [PATCH] Update upgrade Change namespace --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7ced1ef..00868d9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,7 +70,9 @@ ynh_script_progression --message="Updating a configuration file..." --weight=5 if ynh_compare_current_package_version --comparison lt --version 1.1.15~ynh1; then ynh_add_config --template="config.local.user.php" --destination="$install_dir/config.local.user.php" fi - +if ynh_compare_current_package_version --comparison lt --version 1.2.9~ynh1; then + ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php" +fi ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" # NOTE: Don't overwrite config.local.user.php