mirror of
https://github.com/searxng/searxng.git
synced 2026-01-01 08:30:01 +00:00
[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>
This commit is contained in:
committed by
Markus Heiser
parent
5c4afdd737
commit
f46508b35f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user