open-productive-stack/mailcow/data/conf/redis/redis-conf.sh
2025-04-06 22:48:06 +02:00

12 lines
241 B
Bash
Executable file

#!/bin/sh
cat <<EOF > /redis.conf
requirepass $REDISPASS
user quota_notify on nopass ~QW_* -@all +get +hget +ping
EOF
if [ -n "$REDISMASTERPASS" ]; then
echo "masterauth $REDISMASTERPASS" >> /redis.conf
fi
exec redis-server /redis.conf