From d5d18a24bace8f87e00017afb5fbf533e3f531bd Mon Sep 17 00:00:00 2001 From: Kayou Date: Sat, 28 Nov 2020 08:38:35 +0100 Subject: [PATCH] Testing (#79) * fix regexp for change_url script regexp was not working, needed to escape squared brackets. Co-authored-by: Thomas Rogeat --- manifest.json | 2 +- scripts/change_url | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 4cfacff..b13a67d 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Upload a file in a simple way and give a unique link to it", "fr": "Hébergez simplement un fichier et partagez-le avec un lien unique" }, - "version": "4.1.1~ynh3", + "version": "4.1.1~ynh4", "url": "https://gitlab.com/mojo42/Jirafeau", "license": "AGPL-3.0-only", "maintainer": { 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