postinst is in cracklib-runtime 2.9.2-5build1.
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 | #! /bin/sh
set -e
run_update_cracklib () {
if [ -r /etc/cracklib/cracklib.conf ]; then
update-cracklib > /dev/null
fi
}
if [ "$1" = "triggered" ]; then
run_update_cracklib
exit 0
fi
[ "$1" = "configure" ] || exit 0
run_update_cracklib
# /etc/cron.daily/cracklib -> cracklib-runtime transition
if dpkg --compare-versions "$2" le "2.7-17"; then
if [ -e /etc/cron.daily/cracklib ]; then
rm -f /etc/cron.daily/cracklib-runtime
mv /etc/cron.daily/cracklib /etc/cron.daily/cracklib-runtime
fi
fi
exit 0
|