From 2a3eb1ca44a5bc0ab4ea1683f1d2a809c4efbdbe Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 20 May 2025 14:15:17 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/02-named.sh --- rootfs/usr/local/etc/docker/init.d/02-named.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/usr/local/etc/docker/init.d/02-named.sh b/rootfs/usr/local/etc/docker/init.d/02-named.sh index 26be149..97bcf90 100755 --- a/rootfs/usr/local/etc/docker/init.d/02-named.sh +++ b/rootfs/usr/local/etc/docker/init.d/02-named.sh @@ -380,10 +380,10 @@ EOF if named-checkzone -q $domain_name "$TMP_DIR/$file_name"; then cat "$TMP_DIR/$file_name" >>"$DNS_ZONE_FILE" + rm "$TMP_DIR/$file_name" else echo "Checking zone $domain_name has failed" | tee -a "$LOG_DIR/init.txt" >&2 fi - rm "$TMP_DIR/$file_name" grep -qs "$domain_name" "$DNS_ZONE_FILE" && echo "Secondary $domain_name to $DNS_ZONE_FILE" else echo "Failed to get domain name from $dns_file" | tee -a "$LOG_DIR/init.txt" >&2