From 0dd76f27aa3df00d6688e2bdd89ef53e00716239 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Sun, 25 Aug 2024 20:01:44 +0300 Subject: [PATCH] Fixed update script issue --- docs/update102.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/update102.sh b/docs/update102.sh index b1deea8..b2982e9 100644 --- a/docs/update102.sh +++ b/docs/update102.sh @@ -90,7 +90,7 @@ copy_files "/opt/registry102/docs" "/opt/registry/docs" config_file="/var/www/whois/config.php" # Use sed to find the line with 'ignore_captcha' and add a comma after 'true' or 'false' -sed -i "/'ignore_captcha'/ s/\(true\|false\)\([^,]\)/\1,\2/" "$config_file" +sed -i "/'ignore_captcha'/ s/\(true\|false\)\s*$/\1,/" "$config_file" # Append the new lines after 'ignore_captcha' line sed -i "/'ignore_captcha'/a\ 'registry_name' => 'Domain Registry LLC',\n 'registry_url' => 'https://example.com',\n 'branding' => false," "$config_file"