Skip to content

Commit

Permalink
Fix a bug for 8.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Samson-W committed May 21, 2019
1 parent 70b95bd commit 3717ab1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/hardening/8.3.1_install_syslog-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,18 @@ 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"
else
crit "$PACKAGE is absent, installing it"
apt_install $PACKAGE
fi
fi
}

# This function will check config parameters required
Expand Down

0 comments on commit 3717ab1

Please sign in to comment.