summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
Diffstat (limited to 'manage')
-rwxr-xr-xmanage10
1 files changed, 10 insertions, 0 deletions
diff --git a/manage b/manage
index f03343839..a67bdc74e 100755
--- a/manage
+++ b/manage
@@ -105,6 +105,16 @@ fi
export DOCS_BUILD
buildenv() {
+
+ # settings file from repository's working tree are used by default
+ SEARX_SETTINGS_PATH="${REPO_ROOT}/searx/settings.yml"
+
+ if [ -r '/etc/searx/settings.yml' ]; then
+ if ask_yn "should settings read from: /etc/searx/settings.yml"; then
+ SEARX_SETTINGS_PATH='/etc/searx/settings.yml'
+ fi
+ fi
+ export SEARX_SETTINGS_PATH
SEARX_DEBUG=1 pyenv.cmd python utils/build_env.py 2>&1 \
| prefix_stdout "${_Blue}BUILDENV${_creset} "
return "${PIPESTATUS[0]}"