global-config: drop $ScriptUpdatesConfigChangesIgnore

Comment or remove $GlobalConfigVersion in global-config-overlay
to disable change notifications.
This commit is contained in:
Christian Hesse 2020-02-04 20:19:46 +01:00
parent 03af7d6d9c
commit b5f4c2c87e
5 changed files with 6 additions and 8 deletions

View file

@ -6,7 +6,7 @@
# Make sure all configuration properties are up to date and this # Make sure all configuration properties are up to date and this
# value is in sync with value in script 'global-functions'! # value is in sync with value in script 'global-functions'!
:global GlobalConfigVersion 11; :global GlobalConfigVersion 12;
# This is used for DNS and backup file. # This is used for DNS and backup file.
:global Domain "example.com"; :global Domain "example.com";
@ -109,8 +109,6 @@
:global ScriptUpdatesIgnore { :global ScriptUpdatesIgnore {
"global-config" "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 # 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 # for you. If you like the scripts and think this is of value for you or your
# business please consider a donation: # business please consider a donation:

View file

@ -6,7 +6,8 @@
# Make sure all configuration properties are up to date and this # Make sure all configuration properties are up to date and this
# value is in sync with value in script 'global-functions'! # 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, # The global-config script is updated by script-updates,
# global-config-overlay becomes an overlay for your changes. # global-config-overlay becomes an overlay for your changes.

View file

@ -14,4 +14,5 @@
9="introduced configuration overlay 'global-config-overlay'"; 9="introduced configuration overlay 'global-config-overlay'";
10="make health threshold for voltage configurable"; 10="make health threshold for voltage configurable";
11="introduced function '\$ScriptInstallUpdate' to install new and update existing scripts"; 11="introduced function '\$ScriptInstallUpdate' to install new and update existing scripts";
12="removed '\$ScriptUpdatesConfigChangesIgnore', comment '\$GlobalConfigVersion' in 'global-config-overlay' to disable change notifications";
}; };

View file

@ -6,7 +6,7 @@
# global functions # global functions
# expected configuration version # expected configuration version
:global ExpectedConfigVersion 11; :global ExpectedConfigVersion 12;
# global variables not to be changed by user # global variables not to be changed by user
:global SentConfigChangesNotification "-"; :global SentConfigChangesNotification "-";

View file

@ -13,7 +13,6 @@
:global ScriptUpdatesBaseUrl; :global ScriptUpdatesBaseUrl;
:global ScriptUpdatesUrlSuffix; :global ScriptUpdatesUrlSuffix;
:global ScriptUpdatesIgnore; :global ScriptUpdatesIgnore;
:global ScriptUpdatesConfigChangesIgnore;
:global SendNotification; :global SendNotification;
@ -81,8 +80,7 @@
} }
} }
:if ($ScriptUpdatesConfigChangesIgnore!=true && \ :if ($SentConfigChangesNotification!=$ExpectedConfigVersion && \
$SentConfigChangesNotification!=$ExpectedConfigVersion && \
$GlobalConfigVersion < $ExpectedConfigVersion) do={ $GlobalConfigVersion < $ExpectedConfigVersion) do={
:global GlobalConfigChanges; :global GlobalConfigChanges;
:local ChangeLogCode; :local ChangeLogCode;