mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
14 lines
330 B
Bash
Executable File
14 lines
330 B
Bash
Executable File
#!/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
|
|
|