Move private_type_record() to conf.sh.common

The function 'private_type_record()' is now used in multiple system
setup scripts and should be moved to the common configuration script
conf.sh.common.
This commit is contained in:
Matthijs Mekking
2021-06-30 09:23:56 +02:00
parent 22cd63bf81
commit c92128eada
8 changed files with 16 additions and 72 deletions

View File

@@ -22,16 +22,6 @@ do
cp "../ns9/dsset-$subdomain.checkds$TP" .
done
private_type_record() {
_zone=$1
_algorithm=$2
_keyfile=$3
_id=$(keyfile_to_key_id "$_keyfile")
printf "%s. 0 IN TYPE65534 %s 5 %02x%04x0000\n" "$_zone" "\\#" "$_algorithm" "$_id"
}
zone="checkds"
infile="checkds.db.infile"
zonefile="checkds.db"