3 TRUSTED_KEY
=trusted-key-$
(date +%Y
%m
%d
).key
4 DEST
=/srv
/ftp
/other
/packages
/dnssec-anchors
8 unbound-anchor
-v -a root.key ||
9 unbound-anchor
-v -a root.key
11 unbound-host
-v -f root.key
-t DNSKEY . |
12 sed 's/ (secure)//;t;d' |
17 # Cleanup created root.key
21 update_key
"${TRUSTED_KEY}"
23 scp
"${TRUSTED_KEY}" repos.archlinux.org
:${DEST}