Fix building unbound configs for alternates

This commit is contained in:
Bobbe
2026-03-25 12:37:47 +01:00
parent f924014d99
commit db6c334e94

View File

@@ -7,7 +7,7 @@ in
runCommandLocal "stevenblack-hosts-unbound" { src = ./.; } '' runCommandLocal "stevenblack-hosts-unbound" { src = ./.; } ''
mkdir $out mkdir $out
${toUnboundConf} < $src/hosts > $out/hosts ${toUnboundConf} < $src/hosts > $out/hosts
for file in alternates/*/hosts; do for file in $src/alternates/*/hosts; do
${toUnboundConf} < $file > $out/$(basename $(dirname $file)) ${toUnboundConf} < $file > $out/$(basename $(dirname $file))
done done
'' ''