Cleaning up some lines

This commit is contained in:
mboelen 2015-07-22 13:44:30 +02:00
parent afaecd9512
commit fd5c968d16

View File

@ -5,8 +5,8 @@
# Lynis # Lynis
# ------------------ # ------------------
# #
# Copyright 2007-2015, Michael Boelen - CISOfy # Copyright 2007-2015, Michael Boelen - CISOfy (michael.boelen@cisofy.com)
# https://cisofy.com # Website: https://cisofy.com
# #
# This software is licensed under GPL, version 3. See LICENSE file for # This software is licensed under GPL, version 3. See LICENSE file for
# usage of this software. # usage of this software.
@ -132,7 +132,6 @@
# Check updates # Check updates
CheckUpdates() CheckUpdates()
{ {
# Possible improvement: determine if host binary exists YYY
PROGRAM_LV="0000000000"; DB_MALWARE_LV="0000000000"; DB_FILEPERMS_LV="0000000000" PROGRAM_LV="0000000000"; DB_MALWARE_LV="0000000000"; DB_FILEPERMS_LV="0000000000"
LYNIS_LV_RECORD="lynis-latest-version.cisofy.com." LYNIS_LV_RECORD="lynis-latest-version.cisofy.com."
FIND=`which dig 2> /dev/null` FIND=`which dig 2> /dev/null`
@ -352,8 +351,6 @@
fi fi
fi fi
# YYY check group ownership (just in case)
# Check if we have the read bit # Check if we have the read bit
if [ "${OTHERPERMS}" = "r" ]; then if [ "${OTHERPERMS}" = "r" ]; then
CANREAD=1 CANREAD=1
@ -824,12 +821,12 @@
NGINX_EXPIRES_FOUND=1 NGINX_EXPIRES_FOUND=1
;; ;;
error_log) error_log)
# YYY Check if debug is appended # Check if debug is appended
FIND=`echo ${VALUE} | awk '{ if ($2=="debug") { print 1 } else { print 0 }}'` FIND=`echo ${VALUE} | awk '{ if ($2=="debug") { print 1 } else { print 0 }}'`
if [ ${FIND} -eq 1 ]; then if [ ${FIND} -eq 1 ]; then
NGINX_ERROR_LOG_DEBUG=1 NGINX_ERROR_LOG_DEBUG=1
fi fi
# YYY Check if file exists # Check if log file exists
FILE=`echo ${VALUE} | awk '{ print $1 }'` FILE=`echo ${VALUE} | awk '{ print $1 }'`
if [ ! "${FILE}" = "" ]; then if [ ! "${FILE}" = "" ]; then
if [ ! -f ${FILE} ]; then if [ ! -f ${FILE} ]; then