From d03b6d9374b4f4884bfd90bfc04b1d26802d6666 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 2 Sep 2021 08:59:09 +0200 Subject: global-functions: bump the required version for RouterOS 7.x ... but keep a warning when running RouterOS v6. --- global-functions | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'global-functions') diff --git a/global-functions b/global-functions index 625bbe4..388d24e 100644 --- a/global-functions +++ b/global-functions @@ -1257,12 +1257,11 @@ } # check for required RouterOS version -$RequiredRouterOS "global-functions" "6.47" true; - -# ... and give a hint on RouterOS v7. :if ([ $RequiredRouterOS "global-functions" "7.0" false ] = true) do={ - $LogPrintExit2 warning $0 ("RouterOS v7 brings some incompatible changes. Please switch to branch " . \ - "'routeros-v7', see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v7") false; + $RequiredRouterOS "global-functions" "7.1" true; +} else={ + $LogPrintExit2 warning $0 ("Still running RouterOS v6, please switch to branch " . \ + "'routeros-v6', see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v6") false; } # signal we are ready -- cgit v1.2.3-70-g09d2 From 5135a413329ed401ae62ef6b4d05fe09fc0df2f7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 14 Jan 2022 08:35:47 +0100 Subject: global: notify about merging 'routeros-v7' into 'main' --- global-config | 2 +- global-config-overlay | 2 +- global-config.changes | 8 +++++++- global-functions | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) (limited to 'global-functions') diff --git a/global-config b/global-config index 02d99b4..454e5bf 100644 --- a/global-config +++ b/global-config @@ -8,7 +8,7 @@ # Make sure all configuration properties are up to date and this # value is in sync with value in script 'global-functions'! -:global GlobalConfigVersion 74; +:global GlobalConfigVersion 75; # This is used for DNS and backup file. :global Domain "example.com"; diff --git a/global-config-overlay b/global-config-overlay index 37f78cf..562d7b5 100644 --- a/global-config-overlay +++ b/global-config-overlay @@ -8,7 +8,7 @@ # Make sure all configuration properties are up to date and this # value is in sync with value in script 'global-functions'! # Comment or remove to disable news and change notifications. -:global GlobalConfigVersion 74; +:global GlobalConfigVersion 75; # Copy configuration from global-config here and modify it. diff --git a/global-config.changes b/global-config.changes index a070ecd..d1058e4 100644 --- a/global-config.changes +++ b/global-config.changes @@ -2,6 +2,9 @@ # Copyright (c) 2019-2022 Christian Hesse # https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md +:global IfThenElse; +:global RequiredRouterOS; + # Changes for global-config to be added to notification on script updates :global GlobalConfigChanges { 1="Moved variables from 'global-config' to 'global-functions' for independence"; @@ -73,11 +76,14 @@ 67="Moved modules to directory with shorter name."; 68="Reintroduced 'global-wait' for functions in scheduler."; 69="Support hard lower limit for voltage in 'check-health'."; - 70="MikroTik started pushing RouterOS v7. Changes are required if you run it, see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v7"; + 70="MikroTik started pushing RouterOS v7. Changes are no longer required."; 71="MikroTik is pushing RouterOS v7 even more, in parallel branches. If you want to keep RouterOS v6 for some time see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v6"; 72="Introduced new script 'netwatch-dns' to manage DNS and DoH servers from netwatch."; 73="Renamed backup scripts ('cloud-backup' -> 'backup-cloud', 'email-backup' -> 'backup-email', 'upload-backup' -> 'backup-upload')."; 74="Extended 'hotspot-to-wpa', it can now read additional configuration from templates and hotspot users."; + 75=("Finally merged the RouterOS v7 code into the main branch. " . [ $IfThenElse ([ $RequiredRouterOS "global-config.changes" "7.0" false ] = true) \ + ("You may now drop '\$ScriptUpdatesUrlSuffix' from 'global-config-overlay'.") \ + ("Still running RouterOS v6, so last reminder to see https://git.eworm.de/cgit/routeros-scripts/about/#changes-for-routeros-v6") ]); }; # Migration steps to be applied on script updates diff --git a/global-functions b/global-functions index 388d24e..1e402d9 100644 --- a/global-functions +++ b/global-functions @@ -8,7 +8,7 @@ # https://git.eworm.de/cgit/routeros-scripts/about/ # expected configuration version -:global ExpectedConfigVersion 74; +:global ExpectedConfigVersion 75; # global variables not to be changed by user :global GlobalFunctionsReady false; -- cgit v1.2.3-70-g09d2