From 1cfe7f2a7543b2994a1afd0d81da1962d04423b0 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 3 Nov 2020 15:29:59 +0100 Subject: [enh] settings.yml: add use_default_settings option This change is backward compatible with the existing configurations. If a settings.yml loaded from an user defined location (SEARX_SETTINGS_PATH or /etc/searx/settings.yml), then this settings can relied on the default settings.yml with this option: user_default_settings:True --- Makefile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 29faaeefa..94309cefe 100644 --- a/Makefile +++ b/Makefile @@ -266,4 +266,19 @@ test.clean: travis.codecov: $(Q)$(PY_ENV_BIN)/python -m pip install codecov -.PHONY: $(PHONY) + +# user-settings +# ------------- + +PHONY += user-settings.create user-settings.update + +user-settings.update: pyenvinstall + $(Q)$(PY_ENV_ACT); pip install ruamel.yaml + $(Q)$(PY_ENV_ACT); python utils/update_user_settings.py ${SEARX_SETTINGS_PATH} + +user-settings.update.engines: pyenvinstall + $(Q)$(PY_ENV_ACT); pip install ruamel.yaml + $(Q)$(PY_ENV_ACT); python utils/update_user_settings.py --add-engines ${SEARX_SETTINGS_PATH} + + +.PHONY: $(PHONY) \ No newline at end of file -- cgit v1.2.3