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:
Christian Hesse 2025-03-13 10:51:39 +01:00
parent b63e0fcb2f
commit 20bf609c44

View file

@ -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!"); \