From ab0b5505eb5f54f2493d7192a1b313272d717328 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 18 Aug 2021 14:43:42 +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 edaf47c..f3be979 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -97,10 +97,10 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1 domain=${new_domain%/} path="/${new_path%/}" -#sed "s/wwwroot = '.*'/wwwroot = 'https:\/\/new_domain path'/" $final_path/config.php -sed "s/wwwroot = '.*'/wwwroot = \'https:\/\/$domain$path\'/" $final_path/config.php -ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '${new_domain%/}' . '${new_path%/}';" --target_file="$final_path/config.php" +sed -i "s/wwwroot = '.*'/wwwroot = \'https:\/\/$domain$path\'/" "$final_path/config.php" + +#ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '${new_domain%/}' . '${new_path%/}';" --target_file="$final_path/config.php" #================================================= # RELOAD NGINX