Compare commits

..

3 commits

Author SHA1 Message Date
Christian Hesse
2a5da14d80 mode-button: set dont-require-permissions
Actually this is a fixup for the RouterOS 7.24 changes.
2026-07-23 14:49:49 +02:00
Christian Hesse
230d3421d3 global-functions: $ScriptInstallUpdate: match in one regular expression 2026-07-23 13:56:58 +02:00
Christian Hesse
ba584e23a7 global-functions: $ScriptInstallUpdate: drop the check for matching policies...
... as this started to produce false positives.
2026-07-23 13:56:10 +02:00

View file

@ -1336,14 +1336,6 @@
:local ScriptInfo [ $ParseKeyValueStore ($ScriptVal->"comment") ];
:local SourceNew;
:foreach Scheduler in=[ /system/scheduler/find where on-event~("\\b" . $ScriptVal->"name" . "\\b") ] do={
:local SchedulerVal [ /system/scheduler/get $Scheduler ];
:if ($ScriptVal->"policy" != $SchedulerVal->"policy") do={
$LogPrint warning $0 ("Policies differ for script '" . $ScriptVal->"name" . \
"' and its scheduler '" . $SchedulerVal->"name" . "'!");
}
}
:do {
:if ($ScriptInfo->"ignore" = true) do={
$LogPrint debug $0 ("Ignoring script '" . $ScriptVal->"name" . "', as requested.");