From dff7ee91f947a6deda1682c7b66f6816be120f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Sun, 14 Nov 2021 17:46:01 +0100 Subject: [PATCH] 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 --- searx/settings_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/settings_loader.py b/searx/settings_loader.py index 3dc94e88..0939f41e 100644 --- a/searx/settings_loader.py +++ b/searx/settings_loader.py @@ -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):