mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 18:42:44 +00:00
cat'ed zone contents instead of mv'ing file -- this helps preserve old owner/permissions on the zonefile
This commit is contained in:
parent
7a0047332d
commit
a126059f33
@ -56,7 +56,7 @@ dns_nsd_add() {
|
|||||||
local zone_serial_next=$[$zone_serial+1]
|
local zone_serial_next=$[$zone_serial+1]
|
||||||
local tmp_zonefile=$(mktemp)
|
local tmp_zonefile=$(mktemp)
|
||||||
cat "$Nsd_ZoneFile" | sed "s/$zone_serial/$zone_serial_next/" > "$tmp_zonefile"
|
cat "$Nsd_ZoneFile" | sed "s/$zone_serial/$zone_serial_next/" > "$tmp_zonefile"
|
||||||
mv "$tmp_zonefile" "$Nsd_ZoneFile"
|
cat "$tmp_zonefile" > "$Nsd_ZoneFile"
|
||||||
rm -rf "$tmp_zonefile"
|
rm -rf "$tmp_zonefile"
|
||||||
|
|
||||||
_info "Added TXT record for $fulldomain"
|
_info "Added TXT record for $fulldomain"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user