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