Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lynis
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2022-09-17 17:49:26 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2022-09-17 17:49:26 +0300
commit73d43c25eb290e8879a590c8534202bcd400caeb (patch)
tree79d694b9aae2ac73b99c9e2281ac5ef8ad03ea86 /lynis
parentb53d6a80d706d29aaf7a03a31138b024230c49df (diff)
Moved section to discover current timestamp related to issue #1329
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis10
1 files changed, 1 insertions, 9 deletions
diff --git a/lynis b/lynis
index cf7d6bc6..ab8c479e 100755
--- a/lynis
+++ b/lynis
@@ -514,7 +514,7 @@ ${NORMAL}
. ${INCLUDEDIR}/osdetection
Display --indent 2 --text "- Detecting OS... " --result "${STATUS_DONE}" --color GREEN
- # Check hostname
+ # Check hostname and get timestamp
case ${OS} in
HP-UX)
HOSTNAME=$(hostname) ;;
@@ -531,7 +531,6 @@ ${NORMAL}
if [ "${OS}" = "Linux" -a "${HOSTNAME}" = "${FQDN}" ]; then
FQDN=$(hostname -f 2> /dev/null)
fi
-
#
#################################################################################
#
@@ -789,13 +788,6 @@ ${NORMAL}
fi
fi
- # Test for older releases, without testing via update mechanism
- if [ "${OS}" = "Solaris" ]; then
- NOW=$(nawk 'BEGIN{print srand()}')
- else
- NOW=$(date "+%s")
- fi
-
OLD_RELEASE=0
TIME_DIFFERENCE_CHECK=10368000 # 4 months
RELEASE_PLUS_TIMEDIFF=$((PROGRAM_RELEASE_TIMESTAMP + TIME_DIFFERENCE_CHECK))