2026-03-24 06:57:33 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -e
|
|
|
|
|
|
2026-04-20 11:39:35 +02:00
|
|
|
export CONTAINER_NAME=$(dig -x "$(hostname -i)" +short | cut -d . -f 1)
|
|
|
|
|
mkdir -p /data/$CONTAINER_NAME
|
|
|
|
|
cd /data/$CONTAINER_NAME
|
|
|
|
|
|
2026-03-24 06:57:33 +01:00
|
|
|
if [ "${1%.tmpl}" != "$1" ]; then
|
|
|
|
|
cat "$1" | envsubst > /etc/redis.conf
|
|
|
|
|
set -- /etc/redis.conf
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
docker-entrypoint.sh "$@"
|