|
@@ -247,7 +247,7 @@ if [ ! -f $COMPLETION_FILE ]; then
|
247
|
247
|
fi
|
248
|
248
|
|
249
|
249
|
# message if something fails to install
|
250
|
|
-CHECK_MESSAGE="Check your internet connection, /etc/network/interfaces and /etc/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
|
|
250
|
+CHECK_MESSAGE="Check your internet connection, /etc/network/interfaces and /etc/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
|
251
|
251
|
|
252
|
252
|
function show_help {
|
253
|
253
|
echo ''
|
|
@@ -324,7 +324,7 @@ function enforce_good_passwords {
|
324
|
324
|
fi
|
325
|
325
|
apt-get -y --force-yes install libpam-cracklib
|
326
|
326
|
|
327
|
|
- sed -i 's/password requisite pam_deny.so/password requisite pam_cracklib.so retry=2 dcredit=-4 ucredit=-1 ocredit=-1 lcredit=0 minlen=10 reject_username/g' /etc/pam.d/common-password
|
|
327
|
+ sed -i 's/password.*requisite.*pam_cracklib.so retry=3 minlen=8 difok=3/password required pam_cracklib.so retry=2 dcredit=-4 ucredit=-1 ocredit=-1 lcredit=0 minlen=10 reject_username/g' /etc/pam.d/common-password
|
328
|
328
|
echo 'enforce_good_passwords' >> $COMPLETION_FILE
|
329
|
329
|
}
|
330
|
330
|
|