HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/cracklib-runtime.postinst
#! /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

# Automatically added by dh_installdeb/13.14.1ubuntu5
dpkg-maintscript-helper rm_conffile /etc/cron.daily/cracklib-runtime 2.9.6-5\~ cracklib-runtime -- "$@"
# End automatically added section


exit 0