37 lines
896 B
Bash
37 lines
896 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
# enable GDM customization
|
|
if [ -x /usr/bin/dconf ] ; then
|
|
dconf update
|
|
fi
|
|
# Configure PAM for credential cache
|
|
apt-mark manual libpam-ccreds >/dev/null || true
|
|
if [ -e /usr/share/pam-configs/ccreds-check ] ; then
|
|
pam-auth-update --force --package --enable \
|
|
ccreds-check ccreds-save || true
|
|
fi
|
|
# Configure PAM for Kerberos
|
|
if [ -e /usr/share/pam-configs/krb5 ] ; then
|
|
pam-auth-update --force --package --enable krb5 || true
|
|
fi
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|