change formatting of Leases to spaces

This commit is contained in:
Blackyfff 2021-01-15 23:35:47 +01:00
parent 9d1f07d971
commit 91824bee03
1 changed files with 7 additions and 4 deletions

View File

@ -40,7 +40,10 @@ NewLeases="$(echo "$NewLeases" |
awk '!a[$0]++' |
# uncomment and duplicate to secure static DNS-Entries
# sed -e '/^dns\s\+.*/d' |
awk 'BEGIN{FS="\t"}{l=length($1);y=substr("\t\t\t\t\t\t", 1+length($1)/4);x=substr($0,length($1)+1); print $1 y x}' )"
awk 'BEGIN{FS="\t"}{l=length($1);f=substr(" ", 1+length($1));
s=substr(" ", 1+length($2));
x=substr($0,length($1)+length($2)+3);
print $1 f " " $2 s " " x}' )"
if [ "$NewLeases" != "$OldLeases" ]; then
NewSerial="$(GetZoneFileSerial "$HoodZoneFile")"
NewSerial=$((NewSerial+1))