From d98f6f1ca8f44f6c08748b85f9c2a8707f2418bb Mon Sep 17 00:00:00 2001 From: Samson-W Date: Sat, 28 Dec 2019 00:43:53 +0800 Subject: [PATCH] Fix a bug for 7.7.1 --- bin/hardening/7.7.1_enable_firewall.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/hardening/7.7.1_enable_firewall.sh b/bin/hardening/7.7.1_enable_firewall.sh index 978b893..9289cbf 100755 --- a/bin/hardening/7.7.1_enable_firewall.sh +++ b/bin/hardening/7.7.1_enable_firewall.sh @@ -2,7 +2,6 @@ # # harbian audit 7/8/9/10 or CentOS Hardening -# todo 7.7.* need test for CentOS # # @@ -101,7 +100,7 @@ apply_debian () { is_service_enabled ${SERVICENAME} if [ $FNRET = 1 ]; then systemctl enable ${SERVICENAME} - systemctl daemon-reload ${SERVICENAME} + systemctl daemon-reload else : fi @@ -125,7 +124,7 @@ apply_redhat () { is_service_enabled ${SERVICENAME} if [ $FNRET = 1 ]; then systemctl enable ${SERVICENAME} - systemctl daemon-reload ${SERVICENAME} + systemctl daemon-reload else : fi