forked from Ponysearch/Ponysearch
[mod] utils/searx.sh - apache, nginx & uwsgi check old 'searx' installations
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
38482739de
commit
4167bf15dc
2 changed files with 13 additions and 0 deletions
|
@ -274,6 +274,15 @@ install_check() {
|
||||||
else
|
else
|
||||||
info_msg "golang $(go_version) is installed (min needed is: $GO_VERSION)"
|
info_msg "golang $(go_version) is installed (min needed is: $GO_VERSION)"
|
||||||
fi
|
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(){
|
go_version(){
|
||||||
|
|
|
@ -382,6 +382,10 @@ install_check() {
|
||||||
|| err_msg "uWSGI app $SEARXNG_UWSGI_APP not available!"
|
|| err_msg "uWSGI app $SEARXNG_UWSGI_APP not available!"
|
||||||
|
|
||||||
sudo -H -u "${SERVICE_USER}" "${SEARX_PYENV}/bin/python" "utils/searxng_check.py"
|
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() {
|
update_searx() {
|
||||||
|
|
Loading…
Reference in a new issue