File: cracklib-runtime.cron.daily

package info (click to toggle)
cracklib2 2.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,148 kB
  • ctags: 411
  • sloc: sh: 11,875; ansic: 2,632; xml: 365; python: 288; makefile: 207; sed: 16
file content (16 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ -x /usr/sbin/update-cracklib -a -r /etc/cracklib/cracklib.conf ]
then
    status="$(/usr/sbin/update-cracklib)"
    if [ -n "${status}" ]
    then
        /usr/bin/logger -p cron.info -t cracklib "updated dictionary (read/written words: ${status})."
    else
        /usr/bin/logger -p cron.info -t cracklib "no dictionary update necessary."
    fi
fi

exit 0