From 73d43c25eb290e8879a590c8534202bcd400caeb Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 17 Sep 2022 14:49:26 +0000 Subject: Moved section to discover current timestamp related to issue #1329 --- lynis | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lynis') 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)) -- cgit v1.2.3