diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-02-11 22:44:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-11 22:44:22 +0100 |
| commit | 8aba8580579396378f3be12f69a8ab6e59e9255e (patch) | |
| tree | a3c4c4f28d6ddef8376d69a116905c072685265d /dockerfiles/docker-entrypoint.sh | |
| parent | 782c81ec17987010779f3ec3a877176e24ba08fe (diff) | |
| parent | 4fec7a74e579796568989c1e70e62947f1f34903 (diff) | |
Merge pull request #877 from return42/fix-876
[fix] docker generated new settings.yml does not work
Diffstat (limited to 'dockerfiles/docker-entrypoint.sh')
| -rwxr-xr-x | dockerfiles/docker-entrypoint.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh index 7d0a8a8ab..9195ff304 100755 --- a/dockerfiles/docker-entrypoint.sh +++ b/dockerfiles/docker-entrypoint.sh @@ -71,23 +71,24 @@ patch_searxng_settings() { export BASE_URL="${BASE_URL%/}/" # update settings.yml - sed -i -e "s|base_url : False|base_url : ${BASE_URL}|g" \ - -e "s/instance_name : \"searxng\"/instance_name : \"${INSTANCE_NAME}\"/g" \ - -e "s/autocomplete : \"\"/autocomplete : \"${AUTOCOMPLETE}\"/g" \ - -e "s/ultrasecretkey/$(openssl rand -hex 32)/g" \ - "${CONF}" + sed -i \ + -e "s|base_url: false|base_url: ${BASE_URL}|g" \ + -e "s/instance_name: \"SearXNG\"/instance_name: \"${INSTANCE_NAME}\"/g" \ + -e "s/autocomplete: \"\"/autocomplete: \"${AUTOCOMPLETE}\"/g" \ + -e "s/ultrasecretkey/$(openssl rand -hex 32)/g" \ + "${CONF}" # Morty configuration if [ -n "${MORTY_KEY}" ] && [ -n "${MORTY_URL}" ]; then - sed -i -e "s/image_proxy : False/image_proxy : True/g" \ + sed -i -e "s/image_proxy: false/image_proxy: true/g" \ "${CONF}" cat >> "${CONF}" <<-EOF # Morty configuration result_proxy: - url : ${MORTY_URL} - key : !!binary "${MORTY_KEY}" + url: ${MORTY_URL} + key: !!binary "${MORTY_KEY}" EOF fi } |