mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-04 16:51:29 +02:00
Update update103.sh
This commit is contained in:
parent
20d2320ac5
commit
c820587836
1 changed files with 0 additions and 9 deletions
|
@ -86,15 +86,6 @@ copy_files "/opt/registry103/whois/web" "/var/www/whois"
|
|||
copy_files "/opt/registry103/epp" "/opt/registry/epp"
|
||||
copy_files "/opt/registry103/docs" "/opt/registry/docs"
|
||||
|
||||
# Path to the config.php file
|
||||
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\)\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"
|
||||
|
||||
# Run composer update in copied directories (excluding docs)
|
||||
echo "Running composer update..."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue