lookyloo/cache/run_redis.sh

14 lines
373 B
Bash
Executable File

#!/bin/bash
set -e
set -x
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