| 1 | # arg 1: the new package version |
| 2 | post_install() { |
| 3 | echo 'Generating default config file if not exists...' |
| 4 | echo $(while echo; do true; done 2>/dev/null | { dtinitconf >/dev/null; } 2>&1) |
| 5 | touch /etc/dnssec-tools/dnsval.conf.{head,tail} |
| 6 | echo 'Please run following command as root in case of resolver problems:' |
| 7 | echo -e '\tdig @e.root-servers.net . ns > /etc/dnssec-tools/root.hints' |
| 8 | return 0 |
| 9 | } |
| 10 | |
| 11 | # arg 1: the new package version |
| 12 | # arg 2: the old package version |
| 13 | post_upgrade() { |
| 14 | post_install $1 |
| 15 | } |