summaryrefslogtreecommitdiff
path: root/utils/searxng_check.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-05-27 18:43:14 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-07-30 13:39:35 +0200
commit782f73540e2d383ea122716507ccd9582918ab51 (patch)
tree2cca6c47e63cdf383883a2a47ac8329e629bb40d /utils/searxng_check.py
parent81bba4486916dbca4467a7e8c8b839a7c55c2a09 (diff)
downloadsearxng-782f73540e2d383ea122716507ccd9582918ab51.tar.gz
searxng-782f73540e2d383ea122716507ccd9582918ab51.zip
[utils/searxng.sh] implement new script to install SearXNG
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searxng_check.py')
-rw-r--r--utils/searxng_check.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/searxng_check.py b/utils/searxng_check.py
index afd0c4056..39e774340 100644
--- a/utils/searxng_check.py
+++ b/utils/searxng_check.py
@@ -25,3 +25,10 @@ if os.path.isfile(OLD_SETTING):
os.environ.get('SEARXNG_SETTINGS_PATH', '/etc/searxng/settings.yml')
))
warnings.warn(msg, DeprecationWarning)
+
+from searx.shared import redisdb
+from searx import get_setting
+
+if not redisdb.init():
+ warnings.warn("can't connect to redis DB at: %s" % get_setting('redis.url'), RuntimeWarning, stacklevel=2)
+ warnings.warn("--> no bot protection without redis DB", RuntimeWarning, stacklevel=2)