Update 9.2.14 for Debian12
This commit is contained in:
parent
2b6949548f
commit
0ab75f8fa8
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
# harbian-audit for Debian GNU/Linux 7/8/9 or CentOS 8 Hardening
|
||||
# harbian-audit for Debian GNU/Linux 7/8/9/10/11/12 or CentOS 8 Hardening
|
||||
#
|
||||
|
||||
#
|
||||
|
@ -61,12 +61,10 @@ audit_centos () {
|
|||
|
||||
# This function will be called if the script status is on enabled / audit mode
|
||||
audit () {
|
||||
if [ $OS_RELEASE -eq 1 ]; then
|
||||
audit_debian
|
||||
elif [ $OS_RELEASE -eq 2 ]; then
|
||||
if [ $OS_RELEASE -eq 2 ]; then
|
||||
audit_centos
|
||||
else
|
||||
crit "Current OS is not support!"
|
||||
audit_debian
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -105,12 +103,10 @@ apply_centos () {
|
|||
|
||||
# This function will be called if the script status is on enabled mode
|
||||
apply () {
|
||||
if [ $OS_RELEASE -eq 1 ]; then
|
||||
apply_debian
|
||||
elif [ $OS_RELEASE -eq 2 ]; then
|
||||
if [ $OS_RELEASE -eq 2 ]; then
|
||||
apply_centos
|
||||
else
|
||||
crit "Current OS is not support!"
|
||||
apply_debian
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue