diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-11-05 17:50:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-05 17:50:40 +0100 |
| commit | d37afb8ab90f75f888179b6efd3e1e8977ef6dea (patch) | |
| tree | 181d2b38112d9439f836e6d9a286f5355a311ffa /utils/searxng.sh | |
| parent | d764d94a70b0b10291105a867227975d59af5675 (diff) | |
| parent | e92755d358df5b34b0181f48f8ba02c7f2939e8f (diff) | |
Merge pull request #1856 from dalf/checker_requires_redis
The checker requires Redis
Diffstat (limited to 'utils/searxng.sh')
| -rwxr-xr-x | utils/searxng.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/searxng.sh b/utils/searxng.sh index 58f220e1f..e7aa8ed15 100755 --- a/utils/searxng.sh +++ b/utils/searxng.sh @@ -295,7 +295,7 @@ In your instance, redis DB connector is configured at: ${redis_url} " - if searxng.instance.exec python -c "from searx.shared import redisdb; redisdb.init() or exit(42)"; then + if searxng.instance.exec python -c "from searx.shared import redisdb; redisdb.initialize() or exit(42)"; then info_msg "SearXNG instance is able to connect redis DB." return fi @@ -684,7 +684,7 @@ To install uWSGI use:: die 42 "SearXNG's uWSGI app not available" fi - if ! searxng.instance.exec python -c "from searx.shared import redisdb; redisdb.init() or exit(42)"; then + if ! searxng.instance.exec python -c "from searx.shared import redisdb; redisdb.initialize() or exit(42)"; then rst_para "\ The configured redis DB is not available: If your server is public to the internet, you should setup a bot protection to block excessively bot queries. |