mirror of https://github.com/CISOfy/lynis.git
Use OS full name to detect distribution
This commit is contained in:
parent
db419495bf
commit
780e66ea81
|
@ -279,7 +279,7 @@
|
||||||
#
|
#
|
||||||
# Test : PKGS-7320
|
# Test : PKGS-7320
|
||||||
# Description : Check available of arch-audit
|
# Description : Check available of arch-audit
|
||||||
if [ "${OSNAME}" = "Arch Linux" ]; then PREQS_MET="YES"; SKIPREASON=""; else PREQS_MET="NO"; SKIPREASON="Test only applies to Arch Linux"; fi
|
if [ "${OS_FULLNAME}" = "Arch Linux" ]; then PREQS_MET="YES"; SKIPREASON=""; else PREQS_MET="NO"; SKIPREASON="Test only applies to Arch Linux"; fi
|
||||||
Register --test-no PKGS-7320 --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight L --network NO --category security --description "Checking for arch-audit tooling"
|
Register --test-no PKGS-7320 --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight L --network NO --category security --description "Checking for arch-audit tooling"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
if [ -z "${ARCH_AUDIT_BINARY}" ]; then
|
if [ -z "${ARCH_AUDIT_BINARY}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue