mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptInstallUpdate: drop the re-run message
This makes sense just rarely... For important changes we have the migration mechanism. So just drop this.
This commit is contained in:
@@ -711,7 +711,6 @@
|
|||||||
:local ExpectedConfigVersionBefore $ExpectedConfigVersion;
|
:local ExpectedConfigVersionBefore $ExpectedConfigVersion;
|
||||||
:local ReloadGlobalFunctions false;
|
:local ReloadGlobalFunctions false;
|
||||||
:local ReloadGlobalConfig false;
|
:local ReloadGlobalConfig false;
|
||||||
:local ScriptInstallUpdateBefore [ :tostr $ScriptInstallUpdate ];
|
|
||||||
|
|
||||||
:foreach Script in=[ / system script find where source~"^#!rsc( by RouterOS)\?\n" ] do={
|
:foreach Script in=[ / system script find where source~"^#!rsc( by RouterOS)\?\n" ] do={
|
||||||
:local ScriptVal [ / system script get $Script ];
|
:local ScriptVal [ / system script get $Script ];
|
||||||
@@ -879,10 +878,6 @@
|
|||||||
:set GlobalConfigChanges;
|
:set GlobalConfigChanges;
|
||||||
:set GlobalConfigMigration;
|
:set GlobalConfigMigration;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($ScriptInstallUpdateBefore != [ :tostr $ScriptInstallUpdate ]) do={
|
|
||||||
$LogPrintExit2 info $0 ("This function changed, you may want to re-run.") false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# lock script against multiple invocation
|
# lock script against multiple invocation
|
||||||
|
Reference in New Issue
Block a user