postinst is in nsd3 4.1.7-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/bin/sh -e
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/nsd3/nsd.conf.sample 4.0.0~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/cron.d/nsd3 4.0.0~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/nsd3 4.0.0~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper symlink_to_dir /usr/share/doc/nsd3 /usr/share/doc/nsd 4.1.0-1.1~ -- "$@"
# End automatically added section
# Source debconf library.
. /usr/share/debconf/confmodule
if test -d "/etc/nsd3"; then
# cleanup a backup cruft
for ext in '~' '%' .bak; do
rm -f /etc/nsd/nsd.conf$ext
done
# try to remove config directory
rmdir "/etc/nsd3" >/dev/null 2>/dev/null || true
if test -d "/etc/nsd3"; then
db_input high nsd3/old_confdir_exists || true
db_go
fi
fi
|