mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02:00
script-updates: warn on scheduler at startup with no interval
This commit is contained in:
parent
125f37615b
commit
5316ec6ef5
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,13 @@
|
|||
:log warning ("Policies differ for script " . $ScriptVal->"name" . \
|
||||
" and its scheduler " . $SchedulerVal->"name" . "!");
|
||||
}
|
||||
:if ($SchedulerVal->"name" != "global-scripts" && \
|
||||
$SchedulerVal->"start-time" = "startup" && \
|
||||
$SchedulerVal->"interval" = 0s && \
|
||||
[ :pick ($SchedulerVal->"on-event") 0 7 ] != ":delay ") do={
|
||||
:log warning ("Scheduler " . $SchedulerVal->"name" . " starts on startup, " . \
|
||||
"without interval. Add delay to make sure the configuration is available!");
|
||||
}
|
||||
}
|
||||
|
||||
:if ([ :len $SourceNew ] = 0 && $ScriptUpdatesFetch = true) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue