summaryrefslogtreecommitdiff
path: root/utils/lib_install.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-07-12 16:51:36 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-24 16:24:22 +0200
commit57b8f340a6689fafd0c8d92aebd2b263b090af18 (patch)
tree285289a54d177bf35363cc357ea74e1b6c13f598 /utils/lib_install.sh
parent28c874bf3f95be7b34da4cc7957771d8bd964178 (diff)
[mod] utils/searx.sh - add command 'inspect settings'
Inspect YAML setting <key> from SearXNG instance (${SEARX_SRC}):: utils/searx.sh inspect settings server.base_url utils/lib_install.sh should not log on stdout which is used for the output of function prompt_installation_setting(). Turned build_msg (stdout) into info_msg (stderr). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib_install.sh')
-rwxr-xr-xutils/lib_install.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/lib_install.sh b/utils/lib_install.sh
index a8cb23ab2..4ad11d63d 100755
--- a/utils/lib_install.sh
+++ b/utils/lib_install.sh
@@ -55,18 +55,18 @@ source_dot_config() {
SEARX_PYENV=$("${REPO_ROOT}/utils/searx.sh" --getenv SEARX_PYENV)
SEARX_SETTINGS_PATH=$("${REPO_ROOT}/utils/searx.sh" --getenv SEARX_SETTINGS_PATH)
if [ ! -r "${SEARX_SRC}" ]; then
- build_msg INSTANCE "not yet cloned: ${SEARX_SRC}"
+ info_msg "not yet cloned: ${SEARX_SRC}"
orig_source_dot_config
return 0
fi
- build_msg INSTANCE "using instance at: ${SEARX_SRC}"
+ info_msg "using instance at: ${SEARX_SRC}"
# set and log DOT_CONFIG
if [ -r "${SEARX_SRC}/.config.sh" ]; then
- build_msg INSTANCE "switching to ${SEARX_SRC}/.config.sh"
+ info_msg "switching to ${SEARX_SRC}/.config.sh"
DOT_CONFIG="${SEARX_SRC}/.config.sh"
else
- build_msg INSTANCE "using local config: ${DOT_CONFIG}"
+ info_msg "using local config: ${DOT_CONFIG}"
fi
init_SEARX_SRC_INIT_FILES
fi
@@ -104,12 +104,12 @@ init_SEARX_SRC_INIT_FILES(){
# diff "${REPO_ROOT}/${fname}" "${SEARX_SRC}/${fname}"
if ! cmp --silent "${REPO_ROOT}/${fname}" "${SEARX_SRC}/${fname}"; then
SEARX_SRC_INIT_FILES+=("${fname}")
- build_msg INSTANCE "local clone (workingtree), modified file: ./$fname"
+ info_msg "local clone (workingtree), modified file: ./$fname"
msg="to update use: sudo -H ./utils/searx.sh install init-src"
fi
fi
done <<< "$(git diff --name-only)"
- [ -n "$msg" ] && build_msg INSTANCE "$msg"
+ [ -n "$msg" ] && info_msg "$msg"
}
install_log_searx_instance() {