dns/master: zone.makefile: Added cd to key signing

dehydrated
Felix Stupp 5 years ago
parent ab61090340
commit 64576c8ff5
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -14,10 +14,11 @@ ${dest}/${db_file}: ${dest}/${db_file}.unchecked
${dest}/${signed_file}: ${dest}/${db_file} ${dest}/${signed_file}: ${dest}/${db_file}
if [[ "$(dir $<)" != "$(dir $@)" ]]; then echo "directories not equal" > /dev/stderr; exit 1; fi if [[ "$(dir $<)" != "$(dir $@)" ]]; then echo "directories not equal" > /dev/stderr; exit 1; fi
cd "$(dir $@)"; \
dnssec-signzone \ dnssec-signzone \
-3 $$(head -c 1000 /dev/urandom | sha1sum | cut -b 1-16) \ -3 $$(head -c 1000 /dev/urandom | sha1sum | cut -b 1-16) \
-a \ -a \
-N unixtime \ -N unixtime \
-o {{ domain | quote }} \ -o {{ domain | quote }} \
-f "$@" \ -f "$(notdir $@)" \
"$<"; "$(notdir $<)";

Loading…
Cancel
Save