summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-03-25 12:04:10 -0500
committerGitHub <noreply@github.com>2025-03-25 12:04:10 -0500
commit1d419bc2b56a487527dd120d3f39d420fcb615b3 (patch)
treea189d6cb6d63ff0d0294e35dd9c4faa2ffb57042 /debian
parent1c66841323ba1fa4f90d3ce3de6ef7cebc07ed97 (diff)
parentd9ec5d1e70d3991ac64498734157cfb7934034ee (diff)
downloadvyos-1x-1d419bc2b56a487527dd120d3f39d420fcb615b3.tar.gz
vyos-1x-1d419bc2b56a487527dd120d3f39d420fcb615b3.zip
Merge pull request #4413 from oniko94/fix/T7278-fix-cracklib-dep-build
T7278: Remove cracklib hack from postconfig script template
Diffstat (limited to 'debian')
-rw-r--r--debian/vyos-1x.postinst14
1 files changed, 1 insertions, 13 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index ba97f37f6..fde58651a 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -195,10 +195,6 @@ if [ ! -x $PRECONFIG_SCRIPT ]; then
EOF
fi
-# cracklib-runtime default database location
-CRACKLIB_DIR=/var/cache/cracklib
-CRACKLIB_DB=cracklib_dict
-
# create /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script
POSTCONFIG_SCRIPT=/opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script
if [ ! -x $POSTCONFIG_SCRIPT ]; then
@@ -210,15 +206,7 @@ if [ ! -x $POSTCONFIG_SCRIPT ]; then
# This script is executed at boot time after VyOS configuration is fully applied.
# Any modifications required to work around unfixed bugs
# or use services not available through the VyOS CLI system can be placed here.
-#
-# T6353 - Just in case, check if cracklib was installed properly
-# If the database file is missing, re-install the runtime package
-#
-if [ ! -f "${CRACKLIB_DIR}/${CRACKLIB_DB}.pwd" ]; then
- mkdir -p $CRACKLIB_DIR
- /usr/sbin/create-cracklib-dict -o $CRACKLIB_DIR/$CRACKLIB_DB \
- /usr/share/dict/cracklib-small
-fi
+
EOF
fi