mirror of https://github.com/CISOfy/lynis.git
Code cleanup
This commit is contained in:
parent
1d2405cdaa
commit
6283b9a7dd
|
@ -213,18 +213,18 @@
|
|||
# Oracle Enterprise Linux
|
||||
FIND=$(grep "Enterprise Linux Enterprise Linux Server" /etc/redhat-release)
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
LINUX_VERSION="Oracle Enterprise Linux";
|
||||
OS_FULLNAME=$(grep "Enterprise Linux" /etc/redhat-release);
|
||||
OS_VERSION="${OS_FULLNAME}";
|
||||
LINUX_VERSION="Oracle Enterprise Linux"
|
||||
OS_FULLNAME=$(grep "Enterprise Linux" /etc/redhat-release)
|
||||
OS_VERSION="${OS_FULLNAME}"
|
||||
fi
|
||||
|
||||
# Oracle Enterprise Linux
|
||||
if [ -e /etc/oracle-release ]; then
|
||||
FIND=$(grep "Oracle Linux Server" /etc/oracle-release)
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
LINUX_VERSION="Oracle Enterprise Linux";
|
||||
OS_FULLNAME=$(grep "Oracle Linux" /etc/oracle-release);
|
||||
OS_VERSION="${OS_FULLNAME}";
|
||||
LINUX_VERSION="Oracle Enterprise Linux"
|
||||
OS_FULLNAME=$(grep "Oracle Linux" /etc/oracle-release)
|
||||
OS_VERSION="${OS_FULLNAME}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -232,9 +232,9 @@
|
|||
if [ -e /etc/ovs-release ]; then
|
||||
FIND=$(grep "Oracle VM" /etc/ovs-release)
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
LINUX_VERSION="Oracle VM Server";
|
||||
OS_FULLNAME=$(grep "Oracle VM" /etc/ovs-release);
|
||||
OS_VERSION="${OS_FULLNAME}";
|
||||
LINUX_VERSION="Oracle VM Server"
|
||||
OS_FULLNAME=$(grep "Oracle VM" /etc/ovs-release)
|
||||
OS_VERSION="${OS_FULLNAME}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -290,8 +290,8 @@
|
|||
|
||||
# SuSE
|
||||
if [ -e "/etc/SuSE-release" ]; then
|
||||
OS_VERSION=$(head -n 1 /etc/SuSE-release);
|
||||
LINUX_VERSION="SuSE";
|
||||
OS_VERSION=$(head -n 1 /etc/SuSE-release)
|
||||
LINUX_VERSION="SuSE"
|
||||
fi
|
||||
|
||||
# Turbo Linux
|
||||
|
|
Loading…
Reference in New Issue