2019-01-29 18:37:13 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2024-04-29 17:09:22 +02:00
|
|
|
if [ -f ../../valkey/src/valkey-server ]; then
|
|
|
|
../../valkey/src/valkey-server ./cache.conf
|
2024-05-20 10:41:15 +02:00
|
|
|
elif [ -f ../../redis/src/redis-server ]; then
|
2024-04-29 17:09:22 +02:00
|
|
|
../../redis/src/redis-server ./cache.conf
|
2024-05-20 10:41:15 +02:00
|
|
|
else
|
2024-05-20 14:56:36 +02:00
|
|
|
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
|
2024-05-20 10:41:15 +02:00
|
|
|
/usr/bin/redis-server ./cache.conf
|
2024-04-29 17:09:22 +02:00
|
|
|
fi
|