mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 18:48:37 +02:00
global-config: drop $ScriptUpdatesConfigChangesIgnore
Comment or remove $GlobalConfigVersion in global-config-overlay to disable change notifications.
This commit is contained in:
parent
03af7d6d9c
commit
b5f4c2c87e
5 changed files with 6 additions and 8 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
# Make sure all configuration properties are up to date and this
|
||||
# value is in sync with value in script 'global-functions'!
|
||||
:global GlobalConfigVersion 11;
|
||||
:global GlobalConfigVersion 12;
|
||||
|
||||
# This is used for DNS and backup file.
|
||||
:global Domain "example.com";
|
||||
|
@ -109,8 +109,6 @@
|
|||
:global ScriptUpdatesIgnore {
|
||||
"global-config"
|
||||
}
|
||||
# Enable this to silence all configuration warnings.
|
||||
:global ScriptUpdatesConfigChangesIgnore false;
|
||||
# This project is developed in private spare time and usage is free of charge
|
||||
# for you. If you like the scripts and think this is of value for you or your
|
||||
# business please consider a donation:
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
|
||||
# Make sure all configuration properties are up to date and this
|
||||
# value is in sync with value in script 'global-functions'!
|
||||
:global GlobalConfigVersion 11;
|
||||
# Comment or remove to disable change notifications.
|
||||
:global GlobalConfigVersion 12;
|
||||
|
||||
# The global-config script is updated by script-updates,
|
||||
# global-config-overlay becomes an overlay for your changes.
|
||||
|
|
|
@ -14,4 +14,5 @@
|
|||
9="introduced configuration overlay 'global-config-overlay'";
|
||||
10="make health threshold for voltage configurable";
|
||||
11="introduced function '\$ScriptInstallUpdate' to install new and update existing scripts";
|
||||
12="removed '\$ScriptUpdatesConfigChangesIgnore', comment '\$GlobalConfigVersion' in 'global-config-overlay' to disable change notifications";
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# global functions
|
||||
|
||||
# expected configuration version
|
||||
:global ExpectedConfigVersion 11;
|
||||
:global ExpectedConfigVersion 12;
|
||||
|
||||
# global variables not to be changed by user
|
||||
:global SentConfigChangesNotification "-";
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
:global ScriptUpdatesBaseUrl;
|
||||
:global ScriptUpdatesUrlSuffix;
|
||||
:global ScriptUpdatesIgnore;
|
||||
:global ScriptUpdatesConfigChangesIgnore;
|
||||
|
||||
:global SendNotification;
|
||||
|
||||
|
@ -81,8 +80,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
:if ($ScriptUpdatesConfigChangesIgnore!=true && \
|
||||
$SentConfigChangesNotification!=$ExpectedConfigVersion && \
|
||||
:if ($SentConfigChangesNotification!=$ExpectedConfigVersion && \
|
||||
$GlobalConfigVersion < $ExpectedConfigVersion) do={
|
||||
:global GlobalConfigChanges;
|
||||
:local ChangeLogCode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue