Merge pull request #935 from oniko94/fix/T7278-fix-cracklib-dep-build

T7278: Fix python3-cracklib database creation on update
This commit is contained in:
Daniil Baturin 2025-03-25 15:12:58 +00:00 committed by GitHub
commit e57bff5859
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,13 @@
#!/bin/sh
CRACKLIB_DIR=/var/cache/cracklib
CRACKLIB_DB=cracklib_dict
if [ ! -f "${CRACKLIB_DIR}/${CRACKLIB_DB}.pwd" ]; then
echo "I: Creating the cracklib database ${CRACKLIB_DIR}/${CRACKLIB_DB}"
mkdir -p $CRACKLIB_DIR
/usr/sbin/create-cracklib-dict -o $CRACKLIB_DIR/$CRACKLIB_DB \
/usr/share/dict/cracklib-small
fi

View File

@ -44,7 +44,8 @@ usr/games/*
usr/local/games/*
# T5511: We do not need any caches on the system (will be recreated when needed).
var/cache/*
# T7278: We need directory created by python3-cracklib for password checks
var/cache/!(cracklib)
# T5511: We do not need any log-files on the system (will be recreated when needed).
var/log/*.log