mirror of
https://github.com/stalwartlabs/stalwart.git
synced 2026-08-19 08:01:08 +00:00
15 lines
285 B
Bash
Executable File
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
|