/usr/share/doc/dbconfig-common/examples/db-test-pgsql-migration-2.0/debian/postinst is in dbconfig-common 1.8.47+nmu1.
This file is owned by root:root, with mode 0o644.
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 | #!/bin/sh
set -e
#set -x
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst.pgsql
# the previous version (1.9) didn't use dbconfig-common. this is
# how we accomodate users who already have this old version installed:
dbc_first_version="2.0"
dbc_generate_include="sh:/etc/db-test-pgsql-migration/db.new.conf"
dbc_go db-test-pgsql-migration $@
#DEBHELPER#
|