Update 9.2.3 for Debian12

This commit is contained in:
Samson-W 2023-06-12 01:27:48 +08:00
parent ab55dd82ee
commit 13f75e093e

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# #
# harbian-audit for Debian GNU/Linux 9/10 or CentOS Hardening # harbian-audit for Debian GNU/Linux 9/10/11/12 or CentOS Hardening
# #
# #
@ -68,7 +68,8 @@ audit_centos () {
audit () { audit () {
if [ $OS_RELEASE -eq 1 ]; then if [ $OS_RELEASE -eq 1 ]; then
audit_debian audit_debian
elif [ $OS_RELEASE -eq 2 ]; then # debian11/debian12 default use pam_pwquality, same as centos
elif [ $OS_RELEASE -eq 2 -o $OS_RELEASE -eq 11 -o $OS_RELEASE -eq 12 ]; then
audit_centos audit_centos
else else
crit "Current OS is not support!" crit "Current OS is not support!"
@ -114,7 +115,8 @@ apply_centos () {
apply () { apply () {
if [ $OS_RELEASE -eq 1 ]; then if [ $OS_RELEASE -eq 1 ]; then
apply_debian apply_debian
elif [ $OS_RELEASE -eq 2 ]; then # debian11/debian12 default use pam_pwquality, same as centos
elif [ $OS_RELEASE -eq 2 -o $OS_RELEASE -eq 11 -o $OS_RELEASE -eq 12 ]; then
apply_centos apply_centos
else else
crit "Current OS is not support!" crit "Current OS is not support!"