File: cracklib-runtime.postinst

package info (click to toggle)
cracklib2 2.7-19
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 384 kB
  • ctags: 114
  • sloc: ansic: 1,931; sh: 67; makefile: 65; perl: 46
file content (19 lines) | stat: -rw-r--r-- 432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

set -e

if [ "$1" = "configure" -a -r /etc/cracklib/cracklib.conf ]; then
    /usr/sbin/update-cracklib > /dev/null

    # /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
fi

#DEBHELPER#

exit 0