diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-08 22:04:17 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-08 22:04:17 +0300 |
commit | 82ededed318e6adcc97d2495237d3c3b6c09cd04 (patch) | |
tree | 7dcd3b4f1e8b25335b3c128972fb0be473fc5fa4 /include/tests_storage_nfs | |
parent | 81d8486cb07d2d68aa71c52df363bb70aa226f4d (diff) |
Style improvements and command replacements
Diffstat (limited to 'include/tests_storage_nfs')
-rw-r--r-- | include/tests_storage_nfs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tests_storage_nfs b/include/tests_storage_nfs index d2adb879..f5debe66 100644 --- a/include/tests_storage_nfs +++ b/include/tests_storage_nfs @@ -37,7 +37,7 @@ Register --test-no STRG-1902 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check rpcinfo registered programs" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking rpcinfo registered programs" - FIND=`${RPCINFOBINARY} -p 2> /dev/null | tr -s ' ' ','` + FIND=`${RPCINFOBINARY} -p 2> /dev/null | ${TRBINARY} -s ' ' ','` for I in ${FIND}; do LogText "rpcinfo: ${I}" done @@ -122,10 +122,10 @@ LogText "Test: check /etc/exports" if [ -f /etc/exports ]; then LogText "Result: /etc/exports exists" - FIND=`${GREPBINARY} -v "^$" /etc/exports | ${GREPBINARY} -v "^#" | sed 's/ /!space!/g'` + FIND=`${GREPBINARY} -v "^$" /etc/exports | ${GREPBINARY} -v "^#" | ${SEDBINARY} 's/ /!space!/g'` if [ ! "${FIND}" = "" ]; then for I in ${FIND}; do - I=`echo ${I} | sed 's/!space!/ /g'` + I=`echo ${I} | ${SEDBINARY} 's/!space!/ /g'` LogText "Found line: ${I}" done else @@ -161,7 +161,7 @@ Register --test-no STRG-1930 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check client access to nfs share" if [ ${SKIPTEST} -eq 0 ]; then #LogText "Test: " - sFIND=`${SHOWMOUNTBINARY} -e | ${AWKBINARY} '{ print $2 }' | sed '1d'| ${GREPBINARY} "\*"` + sFIND=`${SHOWMOUNTBINARY} -e | ${AWKBINARY} '{ print $2 }' | ${SEDBINARY} '1d'| ${GREPBINARY} "\*"` if [ "${sFIND}" != "" ]; then LogText "Result: all client are allowed to access a NFS share in /etc/exports" Display --indent 4 --text "- Checking NFS client access" --result "ALL CLIENTS" --color YELLOW |