From c12b940bef87858f7b28e033e81dd407ba876900 Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:20:39 -0500 Subject: [PATCH] Update change_url Update trusted_hosts in config.ini.php --- scripts/change_url | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index fb8fd35..c9cbd8e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -18,6 +18,16 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config +#================================================= +# SPECIFIC MODIFICATIONS +#================================================= +# RECONFIGURING MATOMO +#================================================= +ynh_script_progression --message="Reconfiguring Matomo..." --weight=2 + +# See https://matomo.org/faq/how-to-install/faq_18/ +ynh_replace_string --match_string="trusted_hosts[] = \"$old_domain\"" --replace_string="trusted_hosts[] = \"$new_domain\"" --target_file="$install_dir/config/config.ini.php" + #================================================= # SETUP A CRON #=================================================