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