From 4167bf15dce6c1892b25da411f9004c2703ea19c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 29 Oct 2021 20:54:30 +0200 Subject: [PATCH] [mod] utils/searx.sh - apache, nginx & uwsgi check old 'searx' installations Signed-off-by: Markus Heiser --- utils/filtron.sh | 9 +++++++++ utils/searx.sh | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/utils/filtron.sh b/utils/filtron.sh index e9fc79c87..1b33e6277 100755 --- a/utils/filtron.sh +++ b/utils/filtron.sh @@ -274,6 +274,15 @@ install_check() { else info_msg "golang $(go_version) is installed (min needed is: $GO_VERSION)" fi + + if [ -f "${APACHE_SITES_AVAILABLE}/searx.conf" ]; then + warn_msg "old searx.conf apache site exists" + fi + + if [ -f "${NGINX_APPS_AVAILABLE}/searx.conf" ]; then + warn_msg "old searx.conf nginx site exists" + fi + } go_version(){ diff --git a/utils/searx.sh b/utils/searx.sh index baac48a90..3528f1da2 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -382,6 +382,10 @@ install_check() { || err_msg "uWSGI app $SEARXNG_UWSGI_APP not available!" sudo -H -u "${SERVICE_USER}" "${SEARX_PYENV}/bin/python" "utils/searxng_check.py" + + if uWSGI_app_available 'searx.ini'; then + warn_msg "old searx.ini uWSGI app exists" + fi } update_searx() {