Change from CIS reco and only warn (no crit) if logfile does not exist

This commit is contained in:
Charles Herlin 2018-03-22 18:17:17 +01:00
parent 863adc9c84
commit 8a7f9ddad5

View File

@ -23,7 +23,7 @@ audit () {
for FILE in $FILES; do for FILE in $FILES; do
does_file_exist $FILE does_file_exist $FILE
if [ $FNRET != 0 ]; then if [ $FNRET != 0 ]; then
crit "$FILE does not exist" warn "$FILE does not exist"
else else
has_file_correct_ownership $FILE $USER $GROUP has_file_correct_ownership $FILE $USER $GROUP
if [ $FNRET = 0 ]; then if [ $FNRET = 0 ]; then