From 3717ab15509b13d9ac01e95f095cd27d6e9bb362 Mon Sep 17 00:00:00 2001 From: Samson-W Date: Tue, 21 May 2019 15:54:00 +0800 Subject: [PATCH] Fix a bug for 8.3.1 --- bin/hardening/8.3.1_install_syslog-ng.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/hardening/8.3.1_install_syslog-ng.sh b/bin/hardening/8.3.1_install_syslog-ng.sh index 09f3132..3624af0 100755 --- a/bin/hardening/8.3.1_install_syslog-ng.sh +++ b/bin/hardening/8.3.1_install_syslog-ng.sh @@ -38,6 +38,10 @@ audit () { # This function will be called if the script status is on enabled mode apply () { + is_pkg_installed $PACKAGE_R + if [ $FNRET = 0 ]; then + ok "$PACKAGE_R has installed, so pass." + else is_pkg_installed $PACKAGE if [ $FNRET = 0 ]; then ok "$PACKAGE or $PACKAGE_R is installed" @@ -45,6 +49,7 @@ apply () { crit "$PACKAGE is absent, installing it" apt_install $PACKAGE fi + fi } # This function will check config parameters required