global-functions: $ScriptInstallUpdate: log existing script with info, not warning

This commit is contained in:
Christian Hesse 2026-08-01 16:36:32 +02:00
parent 306842ed74
commit 7932b3c138

View file

@ -1306,7 +1306,7 @@
:foreach Script in=$Scripts do={
:if ([ :len [ /system/script/find where name=$Script ] ] > 0) do={
$LogPrint warning $0 ("Requested to add script '" . $Script . "', but that exists already!");
$LogPrint info $0 ("Requested to add script '" . $Script . "', but that exists already!");
} else={
$LogPrint info $0 ("Adding new script: " . $Script);
/system/script/add name=$Script owner=$Script source="#!rsc by RouterOS\n" comment=$NewComment;