mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 00:34:14 +02:00
Merge pull request #1336 from MassacreNetworks/patch-1
expected variable $NOW
This commit is contained in:
commit
6ee10048b1
1
lynis
1
lynis
@ -791,6 +791,7 @@ ${NORMAL}
|
|||||||
OLD_RELEASE=0
|
OLD_RELEASE=0
|
||||||
TIME_DIFFERENCE_CHECK=10368000 # 4 months
|
TIME_DIFFERENCE_CHECK=10368000 # 4 months
|
||||||
RELEASE_PLUS_TIMEDIFF=$((PROGRAM_RELEASE_TIMESTAMP + TIME_DIFFERENCE_CHECK))
|
RELEASE_PLUS_TIMEDIFF=$((PROGRAM_RELEASE_TIMESTAMP + TIME_DIFFERENCE_CHECK))
|
||||||
|
NOW=$(date "+%s")
|
||||||
if [ ${NOW} -gt ${RELEASE_PLUS_TIMEDIFF} ]; then
|
if [ ${NOW} -gt ${RELEASE_PLUS_TIMEDIFF} ]; then
|
||||||
# Show if release is old, only if we didn't show it with normal update check
|
# Show if release is old, only if we didn't show it with normal update check
|
||||||
if [ ${UPDATE_AVAILABLE} -eq 0 ]; then
|
if [ ${UPDATE_AVAILABLE} -eq 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user