mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-14 12:04:29 +02:00
check-routeros-update: fix condition for license check
Turns out that `next-renewal-at` is moved forward when renewal failed, so it never matches the criteria. Just start complaining three weeks before deadline.
This commit is contained in:
parent
b63e0fcb2f
commit
20bf609c44
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@
|
|||
:error false;
|
||||
}
|
||||
|
||||
:if ([ :totime ($License->"next-renewal-at") ] + 1w < [ :timestamp ]) do={
|
||||
:if ([ :totime ($License->"deadline-at") ] - 3w < [ :timestamp ]) do={
|
||||
$LogPrint warning $ScriptName ("Your license will expire on " . ($License->"deadline-at") . "!");
|
||||
$SendNotification2 ({ origin=$ScriptName; \
|
||||
subject=([ $SymbolForNotification "warning-sign" ] . "License about to expire!"); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue