Check for settings under /etc/searx/settings.yml first

The patch introduced earlier broke the behaviour for instance
admins running searx from packages. This fix aims to provide
compatibility for everyone.

Closes #3061
This commit is contained in:
Noémi Ványi 2021-11-14 17:46:01 +01:00
parent 3531090ed6
commit dff7ee91f9
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def get_user_settings_path():
return check_settings_yml(environ['SEARX_SETTINGS_PATH'])
# if not, get it from searx code base or last solution from /etc/searx
return check_settings_yml('settings.yml') or check_settings_yml('/etc/searx/settings.yml')
return check_settings_yml('/etc/searx/settings.yml') or check_settings_yml('settings.yml')
def update_dict(default_dict, user_dict):