diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2022-09-17 17:49:26 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2022-09-17 17:49:26 +0300 |
commit | 73d43c25eb290e8879a590c8534202bcd400caeb (patch) | |
tree | 79d694b9aae2ac73b99c9e2281ac5ef8ad03ea86 /lynis | |
parent | b53d6a80d706d29aaf7a03a31138b024230c49df (diff) |
Moved section to discover current timestamp related to issue #1329
Diffstat (limited to 'lynis')
-rwxr-xr-x | lynis | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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)) |