From d5eb9839450e5fe91a1e4af35c134c975ae64398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 17 Oct 2024 17:50:21 +0200 Subject: [PATCH] fix: Support valkey instead of redis --- cache/run_redis.sh | 9 ++++++++- whowas/run_redis.sh | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cache/run_redis.sh b/cache/run_redis.sh index 344430d..8daf6d8 100755 --- a/cache/run_redis.sh +++ b/cache/run_redis.sh @@ -3,4 +3,11 @@ set -e set -x -../../redis/src/redis-server ./cache.conf +if [ -f ../../valkey/src/valkey-server ]; then + ../../valkey/src/valkey-server ./cache.conf +elif [ -f ../../redis/src/redis-server ]; then + ../../redis/src/redis-server ./cache.conf +else + echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2 + /usr/bin/redis-server ./cache.conf +fi diff --git a/whowas/run_redis.sh b/whowas/run_redis.sh index dec5745..8daf6d8 100755 --- a/whowas/run_redis.sh +++ b/whowas/run_redis.sh @@ -3,4 +3,11 @@ set -e set -x -../../redis/src/redis-server ./whowas.conf +if [ -f ../../valkey/src/valkey-server ]; then + ../../valkey/src/valkey-server ./cache.conf +elif [ -f ../../redis/src/redis-server ]; then + ../../redis/src/redis-server ./cache.conf +else + echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2 + /usr/bin/redis-server ./cache.conf +fi