From 74fe3da34e7d557c566715f87399d4298a142c3b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 18 Aug 2021 11:56:21 +0200 Subject: [PATCH] Update change_url --- scripts/change_url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 7aea598..b963fb6 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -96,9 +96,9 @@ fi #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 -domain=${new_domain%/} -path_url=${new_path%/} -ynh_replace_string --match_string="wwwroot = \'https://.*\';" --replace_string="wwwroot = \'https://$domain$path_url\';" --target_file="$final_path/config.php" +#domain=${new_domain%/} +#path_url=${new_path%/} +ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '$new_domain' . '${new_path%/}' . '/';" --target_file="$final_path/config.php" #================================================= # RELOAD NGINX