diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-04-02 14:15:03 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2020-04-02 14:15:03 +0300 |
commit | 4fe1cb92a56f6e008d9bd040f4a0f2c1116fb333 (patch) | |
tree | cc822aa503918bea2b07dd142c33ff81b18882c0 /include | |
parent | 1996b7e0c664bfc331c5de880c843da775525396 (diff) |
[PRNT-2308] check also SSLListen statements
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_printers_spools | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tests_printers_spools b/include/tests_printers_spools index 161c9fb3..18c48beb 100644 --- a/include/tests_printers_spools +++ b/include/tests_printers_spools @@ -134,13 +134,14 @@ # # Test : PRNT-2308 # Description : Check CUPS daemon network configuration + # Notes : Listen and SSLListen can be used if [ ${CUPSD_FOUND} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no PRNT-2308 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check CUPSd network configuration" if [ ${SKIPTEST} -eq 0 ]; then FOUND=0 # Checking network addresses LogText "Test: Checking CUPS daemon listening network addresses" - FIND=$(${GREPBINARY} "^Listen" ${CUPSD_CONFIG_FILE} | ${GREPBINARY} -v "/" | ${AWKBINARY} '{ print $2 }') + FIND=$(${EGREPBINARY} "^(SSL)?Listen" ${CUPSD_CONFIG_FILE} | ${GREPBINARY} -v "/" | ${AWKBINARY} '{ print $2 }') COUNT=0 for ITEM in ${FIND}; do LogText "Found network address: ${ITEM}" |