Changes to BOOT-5104 and HTTP-6716

This commit is contained in:
Michael Boelen 2017-05-08 14:56:39 +02:00
parent 0bc344d049
commit aec9b57c29
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
2 changed files with 8 additions and 3 deletions

View File

@ -121,6 +121,11 @@
SERVICE_MANAGER="bsdrc" SERVICE_MANAGER="bsdrc"
fi fi
;; ;;
"macOS")
if [ -x ${ROOTDIR}sbin/launchd ]; then
SERVICE_MANAGER="launchd"
fi
;;
*) *)
LogText "Result: unknown service manager" LogText "Result: unknown service manager"
;; ;;

View File

@ -561,20 +561,20 @@
Display --indent 8 --text "- Debugging mode on error_log" --result "${STATUS_YES}" --color RED Display --indent 8 --text "- Debugging mode on error_log" --result "${STATUS_YES}" --color RED
AddHP 2 3 AddHP 2 3
else else
LogText "Result: no virtual hosts found which have their access log disabled" LogText "Result: no virtual hosts found which have their their error log in debug mode"
Display --indent 8 --text "- Debugging mode on error_log" --result "${STATUS_NO}" --color GREEN Display --indent 8 --text "- Debugging mode on error_log" --result "${STATUS_NO}" --color GREEN
AddHP 3 3 AddHP 3 3
fi fi
# Report suggestion # Report suggestion
if [ ${NGINX_LOG_SUGGESTION} -eq 1 ]; then if [ ${NGINX_LOG_SUGGESTION} -eq 1 ]; then
ReportSuggestion ${TEST_NO} "Check your nginx error_log statements" ReportSuggestion ${TEST_NO} "Check your nginx error_log statements and disable debug mode"
fi fi
fi fi
# #
################################################################################# #################################################################################
# #
# Test : HTTP-6720 # Test : HTTP-6720
# Description : Search for Nginx log files # Description : Search for nginx log files
if [ ${NGINX_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi if [ ${NGINX_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
Register --test-no HTTP-6720 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check Nginx log files" Register --test-no HTTP-6720 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check Nginx log files"
if [ ${SKIPTEST} -eq 0 ]; then if [ ${SKIPTEST} -eq 0 ]; then