Fix some bugs.

This commit is contained in:
Samson-W 2019-08-07 03:40:30 +08:00
parent 0be34f1b41
commit 286293441e
3 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
#
#
# 5.7 Install screen (Scored)
# 5.2 Install screen (Scored)
# Author : Samson wen, Samson <sccxboy@gmail.com>
#

View File

@ -5,7 +5,7 @@
#
#
# 5.8 Ensure openssh server is enabled (Scored)
# 5.3 Ensure openssh server is enabled (Scored)
# Author : Samson wen, Samson <sccxboy@gmail.com>
#
@ -32,7 +32,7 @@ audit () {
if [ $OS_RELEASE -eq 2 ]; then
SERVICE_NAME=$SERVICE_NAME_REDHAT
fi
is_service_enabled $SERVICE_NAME
is_service_active $SERVICE_NAME
if [ $FNRET = 0 ]; then
ok "$SERVICE_NAME is actived"
else

View File

@ -1,11 +1,11 @@
#!/bin/bash
#
# harbian audit 9 Hardening
# harbian audit 9 or CentOS Hardening
#
#
# 5.9 Ensure ctrl-alt-del is disabled (Scored)
# 5.4 Ensure ctrl-alt-del is disabled (Scored)
# Author : Samson wen, Samson <sccxboy@gmail.com>
#