2020-06-13 02:49:07 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
2024-11-04 17:00:14 +01:00
|
|
|
# set -x
|
2020-06-13 02:49:07 +02:00
|
|
|
|
2024-04-29 17:09:22 +02:00
|
|
|
if [ -f ../../valkey/src/valkey-server ]; then
|
2024-11-04 17:00:14 +01:00
|
|
|
if [[ ` ../../valkey/src/valkey-server -v` == *"v=7."* ]] ; then
|
|
|
|
echo "You're using valkey 7, please upgrade do valkey 8"
|
|
|
|
exit 1
|
|
|
|
fi
|
2024-04-29 17:09:22 +02:00
|
|
|
../../valkey/src/valkey-server ./indexing.conf
|
2024-05-20 10:41:15 +02:00
|
|
|
elif [ -f ../../redis/src/redis-server ]; then
|
2024-11-04 17:00:14 +01:00
|
|
|
if [[ ` ../../redis/src/redis-server -v` == *"v=7."* ]] ; then
|
|
|
|
echo "You're using redis 7, please upgrade do valkey 8";
|
|
|
|
exit 1
|
|
|
|
fi
|
2024-04-29 17:09:22 +02:00
|
|
|
../../redis/src/redis-server ./indexing.conf
|
2024-05-20 10:41:15 +02:00
|
|
|
else
|
2024-11-04 17:00:14 +01:00
|
|
|
if [[ `/usr/bin/redis-server -v` == *"v=7."* ]] ; then
|
|
|
|
echo "You're using redis 7, please upgrade do valkey 8";
|
|
|
|
exit 1
|
|
|
|
fi
|
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 ./indexing.conf
|
2024-04-29 17:09:22 +02:00
|
|
|
fi
|