Files
stalwart/tests/docker/powerdns/entrypoint.sh
2026-03-19 19:29:17 +01:00

15 lines
285 B
Bash
Executable File

#!/bin/bash
set -e
# Wait for PowerDNS to be ready (started by default entrypoint)
echo "Waiting for PowerDNS to start..."
for i in $(seq 1 30); do
if pdnsutil list-all-zones 2>/dev/null; then
break
fi
sleep 1
done
# Run zone initialization
bash /etc/powerdns/init-zone.sh