diff options
| author | Mathieu Brunot <mathieu.brunot@monogramm.io> | 2019-10-16 19:30:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-16 19:30:02 +0200 |
| commit | a51b2b6c20c1346748c09aec051d78f6822c580c (patch) | |
| tree | 5f08fadc14de64e86c5582ebbdc928e4abe7475b /dockerfiles/docker-entrypoint.sh | |
| parent | 4d17d453bf99641797dcbfa1f1a35dd5b21dcab4 (diff) | |
| parent | 12f42d1572311a56401637ac5c7dc66008eb979c (diff) | |
Merge branch 'master' into feature/accessibility
Diffstat (limited to 'dockerfiles/docker-entrypoint.sh')
| -rwxr-xr-x | dockerfiles/docker-entrypoint.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh index c731e0a89..8b4c34860 100755 --- a/dockerfiles/docker-entrypoint.sh +++ b/dockerfiles/docker-entrypoint.sh @@ -29,6 +29,8 @@ do printf " -f Always update on the configuration files (existing files are renamed with the .old suffix)\n" printf " Without this option, new configuration files are copied with the .new suffix\n" printf "\nEnvironment variables:\n\n" + printf " INSTANCE_NAME settings.yml : general.instance_name\n" + printf " AUTOCOMPLETE settings.yml : search.autocomplete\n" printf " BASE_URL settings.yml : server.base_url\n" printf " MORTY_URL settings.yml : result_proxy.url\n" printf " MORTY_KEY settings.yml : result_proxy.key\n" @@ -53,6 +55,8 @@ patch_searx_settings() { # update settings.yml sed -i -e "s|base_url : False|base_url : ${BASE_URL}|g" \ + -e "s/instance_name : \"searx\"/instance_name : \"${INSTANCE_NAME}\"/g" \ + -e "s/autocomplete : \"\"/autocomplete : \"${AUTOCOMPLETE}\"/g" \ -e "s/ultrasecretkey/$(openssl rand -hex 32)/g" \ "${CONF}" |