diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-10-29 14:55:41 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2021-10-29 15:51:30 +0000 |
commit | f46508b35fe2885055747b131f1213379af5a163 (patch) | |
tree | b07f5f12fe2b4b910428edab818b2724b92c6f83 /utils/searx.sh | |
parent | 5c4afdd737d0c38d1f41dff3b01c8a52f297308b (diff) | |
download | searxng-f46508b35fe2885055747b131f1213379af5a163.tar.gz searxng-f46508b35fe2885055747b131f1213379af5a163.zip |
[mod] utils/searxng_check.py - check a SearXNG installation
Impplement a script to check a SearXNG installation::
./utils/searx.sh install check
Related-to: https://github.com/searxng/searxng/issues/450
Related-to: https://github.com/searxng/searxng/pull/446#issuecomment-954599668
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-x | utils/searx.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/searx.sh b/utils/searx.sh index 178a185b6..e3393835c 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -154,6 +154,7 @@ shell start interactive shell from user ${SERVICE_USER} install / remove :all: complete (de-) installation of searx service + :check: check the SearXNG installation :user: add/remove service user '$SERVICE_USER' ($SERVICE_HOME) :dot-config: copy ./config.sh to ${SEARX_SRC} :searx-src: clone $GIT_URL @@ -215,6 +216,11 @@ main() { install) sudo_or_exit case $2 in + check) + rst_title "SearXNG (check installation)" part + verify_continue_install + sudo -H -u "${SERVICE_USER}" "${SEARX_PYENV}/bin/python" "utils/searxng_check.py" + ;; all) rst_title "SearXNG (install)" part install_all |