🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/02-named.sh
This commit is contained in:
casjay 2025-05-20 17:10:03 -04:00
parent b95e62256f
commit 34781e222f
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -365,7 +365,7 @@ EOF
for dns_file in "$DATA_DIR/remote"/*; do
file_name="$(basename "$dns_file")"
domain_name="$(basename "${dns_file%.*}")"
main_server="$(grep -sh 'masters ' "$dns_file" | sed 's/^[ \t]*//' || echo 'masters { '${DNS_REMOTE_SERVER:-$DNS_SERVER_PRIMARY}'; };')"
main_server="$(grep -sh 'masters ' "$dns_file" | sed 's/^[ \t]*//' | grep '^' || echo 'masters { '${DNS_REMOTE_SERVER:-$DNS_SERVER_PRIMARY}'; };')"
if [ -n "$domain_name" ]; then
cat <<EOF | sed '/masters.*/d' >>"$DNS_ZONE_FILE"
# ********** begin $domain_name **********