Fix a bug for 7.7.1
This commit is contained in:
parent
8c591a1ef0
commit
d98f6f1ca8
bin/hardening
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#
|
#
|
||||||
# harbian audit 7/8/9/10 or CentOS Hardening
|
# 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}
|
is_service_enabled ${SERVICENAME}
|
||||||
if [ $FNRET = 1 ]; then
|
if [ $FNRET = 1 ]; then
|
||||||
systemctl enable ${SERVICENAME}
|
systemctl enable ${SERVICENAME}
|
||||||
systemctl daemon-reload ${SERVICENAME}
|
systemctl daemon-reload
|
||||||
else
|
else
|
||||||
:
|
:
|
||||||
fi
|
fi
|
||||||
|
@ -125,7 +124,7 @@ apply_redhat () {
|
||||||
is_service_enabled ${SERVICENAME}
|
is_service_enabled ${SERVICENAME}
|
||||||
if [ $FNRET = 1 ]; then
|
if [ $FNRET = 1 ]; then
|
||||||
systemctl enable ${SERVICENAME}
|
systemctl enable ${SERVICENAME}
|
||||||
systemctl daemon-reload ${SERVICENAME}
|
systemctl daemon-reload
|
||||||
else
|
else
|
||||||
:
|
:
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue