Files
BSQBD/build/entrypoint.sh
T
shield a9f9c834be Feat: data persistence in shared volume
implemented a template to enable data persistence even with a shared volume across containers
2026-04-20 11:39:35 +02:00

13 lines
279 B
Bash
Executable File

#!/bin/sh
set -e
export CONTAINER_NAME=$(dig -x "$(hostname -i)" +short | cut -d . -f 1)
mkdir -p /data/$CONTAINER_NAME
cd /data/$CONTAINER_NAME
if [ "${1%.tmpl}" != "$1" ]; then
cat "$1" | envsubst > /etc/redis.conf
set -- /etc/redis.conf
fi
docker-entrypoint.sh "$@"