postinst is in krb5-admin-server 1.12+dfsg-2ubuntu4.
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 33 34 35 36 37 38 39 40 41 42 43 44 | #! /bin/sh
set -e
if [ "configure" = "$1" ] || [ "reconfigure" = "$1" ] ; then
. /usr/share/debconf/confmodule
db_version 2.0
db_get krb5-kdc/debconf
DEBCONF="$RET"
if [ $DEBCONF = "true" ] ; then
if [ -f "/etc/default/krb5-admin-server" ] ; then
. /etc/default/krb5-admin-server
fi
cat <<'EOF' > /etc/default/krb5-admin-server
# Automatically generated. If you change anything in this file other than the
# values of RUN_KADMIND or DAEMON_ARGS, first run dpkg-reconfigure
# krb5-admin-server and disable managing the kadmin configuration with
# debconf. Otherwise, changes will be overwritten.
EOF
db_get krb5-admin-server/kadmind
RUN_KADMIND="$RET"
echo "RUN_KADMIND=$RUN_KADMIND" >> /etc/default/krb5-admin-server
if [ -n "$DAEMON_ARGS" ] ; then
echo "DAEMON_ARGS=\"$DAEMON_ARGS\"" \
>> /etc/default/krb5-admin-server
fi
fi
db_stop
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/krb5-admin-server" ] || [ -e "/etc/init/krb5-admin-server.conf" ]; then
if [ ! -e "/etc/init/krb5-admin-server.conf" ]; then
update-rc.d krb5-admin-server defaults 18 18 >/dev/null
fi
invoke-rc.d krb5-admin-server start || exit $?
fi
# End automatically added section
exit 0
|