From b866eca3eca714e60bb1b23887717e88dd9d66e8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 2 Jun 2021 23:54:35 +0200 Subject: 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. --- global-functions | 5 ----- 1 file changed, 5 deletions(-) diff --git a/global-functions b/global-functions index ab95f3f..c5996ee 100644 --- a/global-functions +++ b/global-functions @@ -711,7 +711,6 @@ :local ExpectedConfigVersionBefore $ExpectedConfigVersion; :local ReloadGlobalFunctions false; :local ReloadGlobalConfig false; - :local ScriptInstallUpdateBefore [ :tostr $ScriptInstallUpdate ]; :foreach Script in=[ / system script find where source~"^#!rsc( by RouterOS)\?\n" ] do={ :local ScriptVal [ / system script get $Script ]; @@ -879,10 +878,6 @@ :set GlobalConfigChanges; :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 -- cgit v1.2.3-54-g00ecf