From ea470b1a1cc9aef7799c412d9956300bf03bb210 Mon Sep 17 00:00:00 2001 From: Thomas Rogeat Date: Wed, 25 Nov 2020 20:00:40 +0100 Subject: [PATCH] fix regexp for change_url script regexp was not working, needed to escape squared brackets. --- scripts/change_url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index 18f18ff..126b57c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -80,7 +80,7 @@ fi #================================================= # Change domain name in parameters.yml -ynh_replace_string --match_string="\$cfg['web_root'] = .*" --replace_string="\$cfg['web_root'] = 'https://' . '$new_domain' . '${new_path%/}' . '/';" --target_file="$final_path/lib/config.local.php" +ynh_replace_string --match_string="\$cfg\['web_root'\] = .*" --replace_string="\$cfg['web_root'] = 'https://' . '$new_domain' . '${new_path%/}' . '/';" --target_file="$final_path/lib/config.local.php" #================================================= # GENERIC FINALISATION