mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-03 01:34:47 +02:00
global-functions: $ScriptInstallUpdate: disable notification only...
... if requested, but keep output and logs.
This commit is contained in:
parent
b18ca62dbd
commit
10182949ea
1 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||
: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 ([ :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 . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue