mirror of https://github.com/CISOfy/lynis.git
Added missing bracket
This commit is contained in:
parent
b947bb085c
commit
7d30538311
|
@ -270,7 +270,7 @@
|
|||
# Swap partitions should be mounted with 'sw' or 'swap'
|
||||
logtext "Test: check swap partitions with incorrect mount options"
|
||||
#FIND=`awk '{ if ($3=="swap" && ($4!="sw" && $4!="swap" && $4!="defaults")) print $1 }' /etc/fstab`
|
||||
FIND=`awk '{ if ($3=="swap" && ($4~/sw/ || $4=="defaults") { print $1 }}' /etc/fstab`
|
||||
FIND=`awk '{ if ($3=="swap" && ($4~/sw/ || $4=="defaults")) { print $1 }}' /etc/fstab`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
Display --indent 2 --text "- Testing swap partitions" --result OK --color GREEN
|
||||
logtext "Result: all swap partitions have correct options (sw or swap)"
|
||||
|
|
Loading…
Reference in New Issue