aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-09-28 08:44:05 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-09-28 09:17:32 +0200
commit10182949eab4c990ae8f6402ca030d19ea2b3cb0 (patch)
tree774014177290df9f1ca6788437d765841d633ba9
parentb18ca62dbda8e9a9aa876f17310c2087eacdb19a (diff)
global-functions: $ScriptInstallUpdate: disable notification only...
... if requested, but keep output and logs.
-rw-r--r--global-functions32
1 files changed, 16 insertions, 16 deletions
diff --git a/global-functions b/global-functions
index 2006a10..f4c47d7 100644
--- a/global-functions
+++ b/global-functions
@@ -832,24 +832,24 @@
}
}
- :if ($NoNewsAndChangesNotification != true) do={
- :local NotificationMessage ("The configuration version on " . $Identity . " increased " . \
- "to " . $ExpectedConfigVersion . ", current configuration may need modification. " . \
- "Please review and update global-config-overlay, then re-run global-config.");
- $LogPrintExit2 info $0 ($NotificationMessage) false;
-
- :if ([ :len $GlobalConfigChanges ] > 0) do={
- :set NotificationMessage ($NotificationMessage . "\n\nChanges:");
- :for I from=($ExpectedConfigVersionBefore + 1) to=$ExpectedConfigVersion do={
- :local Change ($GlobalConfigChanges->[ :tostr $I ]);
- :set NotificationMessage ($NotificationMessage . "\n " . \
- [ $IfThenElse ($NotificationsWithSymbols = true) ("\E2\97\8F") "*" ] . " " . $Change);
- $LogPrintExit2 info $0 ("Change " . $I . ": " . $Change) false;
- }
- } else={
- :set NotificationMessage ($NotificationMessage . "\n\nNews and changes are not available.");
+ :local NotificationMessage ("The configuration version on " . $Identity . " increased " . \
+ "to " . $ExpectedConfigVersion . ", current configuration may need modification. " . \
+ "Please review and update global-config-overlay, then re-run global-config.");
+ $LogPrintExit2 info $0 ($NotificationMessage) false;
+
+ :if ([ :len $GlobalConfigChanges ] > 0) do={
+ :set NotificationMessage ($NotificationMessage . "\n\nChanges:");
+ :for I from=($ExpectedConfigVersionBefore + 1) to=$ExpectedConfigVersion do={
+ :local Change ($GlobalConfigChanges->[ :tostr $I ]);
+ :set NotificationMessage ($NotificationMessage . "\n " . \
+ [ $IfThenElse ($NotificationsWithSymbols = true) ("\E2\97\8F") "*" ] . " " . $Change);
+ $LogPrintExit2 info $0 ("Change " . $I . ": " . $Change) false;
}
+ } else={
+ :set NotificationMessage ($NotificationMessage . "\n\nNews and changes are not available.");
+ }
+ :if ($NoNewsAndChangesNotification != true) do={
:local Link;
:if ($IDonate != true) do={
:set NotificationMessage ($NotificationMessage . \