|
@@ -43,8 +43,16 @@ def get_user_settings_path():
|
|
|
if environ.get('SEARXNG_DISABLE_ETC_SETTINGS', '').lower() in ('1', 'true'):
|
|
|
return None
|
|
|
|
|
|
-
|
|
|
- return check_settings_yml('/etc/searx/settings.yml')
|
|
|
+
|
|
|
+ try:
|
|
|
+ return check_settings_yml('/etc/searxng/settings.yml')
|
|
|
+ except SearxSettingsException as e:
|
|
|
+
|
|
|
+ try:
|
|
|
+ return check_settings_yml('/etc/searx/settings.yml')
|
|
|
+ except SearxSettingsException:
|
|
|
+
|
|
|
+ raise e
|
|
|
|
|
|
|
|
|
def update_dict(default_dict, user_dict):
|