From e40a3562fb861d5341f2964e7e14c005a2ab7722 Mon Sep 17 00:00:00 2001 From: Eric Light Date: Mon, 7 Mar 2016 15:15:22 +1300 Subject: [PATCH] Make NAME-4404 case-insensitive --- include/tests_nameservices | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_nameservices b/include/tests_nameservices index 7f807618..4115f678 100644 --- a/include/tests_nameservices +++ b/include/tests_nameservices @@ -619,7 +619,7 @@ if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Check /etc/hosts contains an entry for this server name" if [ -f /etc/hosts ]; then - sFIND=`egrep -v '^(#|$|^::1\s|localhost)' /etc/hosts | grep ${HOSTNAME}` + sFIND=`egrep -v '^(#|$|^::1\s|localhost)' /etc/hosts | grep -i ${HOSTNAME}` if [ "${sFIND}" != "" ]; then LogText "Result: Found entry for ${HOSTNAME} in /etc/hosts" Display --indent 4 --text "- Checking /etc/hosts (hostname)" --result OK --color GREEN