Support SEARXNG_SETTINGS_PATH folder

This commit is contained in:
Leo Liu 2024-11-09 17:37:03 -08:00 committed by GitHub
parent 2fbf15eccb
commit 6f33031efd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,6 +135,10 @@ update_conf() {
fi fi
} }
if [ -d "${SEARXNG_SETTINGS_PATH}" ]; then
$SEARXNG_SETTINGS_PATH="${SEARXNG_SETTINGS_PATH}/settings.yml"
fi
# searx compatibility: copy /etc/searx/* to /etc/searxng/* # searx compatibility: copy /etc/searx/* to /etc/searxng/*
SEARX_CONF=0 SEARX_CONF=0
if [ -f "/etc/searx/settings.yml" ]; then if [ -f "/etc/searx/settings.yml" ]; then