Optimizational function for 8.3.3 8.3.6
This commit is contained in:
parent
25c083a731
commit
eea44e5124
|
@ -14,17 +14,29 @@ set -u # One variable unset, it's over
|
||||||
HARDENING_LEVEL=3
|
HARDENING_LEVEL=3
|
||||||
|
|
||||||
SERVICE_NAME="syslog-ng"
|
SERVICE_NAME="syslog-ng"
|
||||||
|
PACKAGE_R='rsyslog'
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled / audit mode
|
# This function will be called if the script status is on enabled / audit mode
|
||||||
audit () {
|
audit () {
|
||||||
|
is_pkg_installed $PACKAGE_R
|
||||||
|
if [ $FNRET = 0 ]; then
|
||||||
|
ok "$PACKAGE_R has installed, so pass."
|
||||||
|
FNRET=0
|
||||||
|
else
|
||||||
info "Ensure default and local facilities are preserved on the system"
|
info "Ensure default and local facilities are preserved on the system"
|
||||||
info "No measure here, please review the file by yourself"
|
info "No measure here, please review the file by yourself"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled mode
|
# This function will be called if the script status is on enabled mode
|
||||||
apply () {
|
apply () {
|
||||||
|
is_pkg_installed $PACKAGE_R
|
||||||
|
if [ $FNRET = 0 ]; then
|
||||||
|
ok "$PACKAGE_R has installed, so pass."
|
||||||
|
else
|
||||||
info "Ensure default and local facilities are preserved on the system"
|
info "Ensure default and local facilities are preserved on the system"
|
||||||
info "No measure here, please review the file by yourself"
|
info "No measure here, please review the file by yourself"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will check config parameters required
|
# This function will check config parameters required
|
||||||
|
|
|
@ -12,15 +12,27 @@ set -e # One error, it's over
|
||||||
set -u # One variable unset, it's over
|
set -u # One variable unset, it's over
|
||||||
|
|
||||||
HARDENING_LEVEL=3
|
HARDENING_LEVEL=3
|
||||||
|
PACKAGE_R='rsyslog'
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled / audit mode
|
# This function will be called if the script status is on enabled / audit mode
|
||||||
audit () {
|
audit () {
|
||||||
|
is_pkg_installed $PACKAGE_R
|
||||||
|
if [ $FNRET = 0 ]; then
|
||||||
|
ok "$PACKAGE_R has installed, so pass."
|
||||||
|
FNRET=0
|
||||||
|
else
|
||||||
info "Not implemented yet"
|
info "Not implemented yet"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled mode
|
# This function will be called if the script status is on enabled mode
|
||||||
apply () {
|
apply () {
|
||||||
|
is_pkg_installed $PACKAGE_R
|
||||||
|
if [ $FNRET = 0 ]; then
|
||||||
|
ok "$PACKAGE_R has installed, so pass."
|
||||||
|
else
|
||||||
info "Not implemented yet"
|
info "Not implemented yet"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will check config parameters required
|
# This function will check config parameters required
|
||||||
|
|
Loading…
Reference in New Issue