1
0
mirror of https://github.com/uklans/cache-domains.git synced 2024-05-12 03:54:53 +00:00

Include advice for unbound script

This commit is contained in:
Amir Zarrinkafsh
2021-01-15 21:43:21 +11:00
parent 634b7dfff8
commit 14ccfecb1f
2 changed files with 14 additions and 1 deletions

@ -80,4 +80,10 @@ while read -r entry; do
done <<< $(jq -r ".cache_domains[$entry].domain_files | to_entries[] | .key" $path)
done <<< $(jq -r '.cache_domains | to_entries[] | .key' $path)
echo "Please copy the following files:\n- ./output/dnsmasq/lancache.conf to /etc/dnsmasq/dnsmasq.d/\n- ./output/dnsmasq/hosts to /etc/dnsmasq/"
cat << EOF
Configuration generation completed.
Please copy the following files:
- ./${outputdir}/lancache.conf to /etc/dnsmasq/dnsmasq.d/
- ./${outputdir}/hosts to /etc/dnsmasq/
EOF

@ -63,3 +63,10 @@ while read entry; do
done <<< $(jq -r ".cache_domains[$entry].domain_files[$fileid]" $path)
done <<< $(jq -r ".cache_domains[$entry].domain_files | to_entries[] | .key" $path)
done <<< $(jq -r '.cache_domains | to_entries[] | .key' $path)
cat << EOF
Configuration generation completed.
Please copy the following files:
- ./${outputdir}/*.conf to /etc/unbound/unbound.conf.d/
EOF