lookyloo/indexing/run_redis.sh

14 lines
382 B
Bash
Executable File

#!/bin/bash
set -e
set -x
if [ -f ../../valkey/src/valkey-server ]; then
../../valkey/src/valkey-server ./indexing.conf
elif [ -f ../../redis/src/redis-server ]; then
../../redis/src/redis-server ./indexing.conf
else
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
/usr/bin/redis-server ./indexing.conf
fi