SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] Docker: without -f parameter, settings.yml is not replaced by the new version (#1668)
Alexandre Flament91a59ff35028
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.shindex 60e26fd94..c731e0a89 100755--- a/dockerfiles/docker-entrypoint.sh+++ b/dockerfiles/docker-entrypoint.sh@@ -71,7 +71,7 @@ EOF}update_conf() {- FORCE_CONF_UPDATE="$1"+ FORCE_CONF_UPDATE=$1CONF="$2"NEW_CONF="${2}.new"OLD_CONF="${2}.old"@@ -81,7 +81,7 @@ update_conf() {if [ -f "${CONF}" ]; thenif [ "${REF_CONF}" -nt "${CONF}" ]; then# There is a new version- if [ $FORCE_CONF_UPDATE ]; then+ if [ $FORCE_CONF_UPDATE -ne 0 ]; then# Replace the current configurationprintf '⚠️ Automaticaly update %s to the new version\n' "${CONF}"if [ ! -f "${OLD_CONF}" ]; then@@ -107,7 +107,7 @@ update_conf() {}# make sure there are uwsgi settings-update_conf "${FORCE_CONF_UPDATE}" "${UWSGI_SETTINGS_PATH}" "/usr/local/searx/dockerfiles/uwsgi.ini" "patch_uwsgi_settings"+update_conf ${FORCE_CONF_UPDATE} "${UWSGI_SETTINGS_PATH}" "/usr/local/searx/dockerfiles/uwsgi.ini" "patch_uwsgi_settings"# make sure there are searx settingsupdate_conf "${FORCE_CONF_UPDATE}" "${SEARX_SETTINGS_PATH}" "/usr/local/searx/searx/settings.yml" "patch_searx_settings"