Fix a bug for 7.7.1

This commit is contained in:
Samson-W 2019-12-28 00:43:53 +08:00
parent 8c591a1ef0
commit d98f6f1ca8
1 changed files with 2 additions and 3 deletions

View File

@ -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