mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptInstallUpdate: log and print changes
This commit is contained in:
@ -482,6 +482,7 @@
|
||||
" is out of date. Please update " . $ConfigScript . ", then increase " . \
|
||||
"\$GlobalConfigVersion (currently " . $GlobalConfigVersion . \
|
||||
") to " . $ExpectedConfigVersion . " and re-run " . $ConfigScript . ".");
|
||||
$LogPrintExit info ($NotificationMessage) false;
|
||||
|
||||
$LogPrintExit debug ("Fetching changelog.") false;
|
||||
:do {
|
||||
@ -496,6 +497,7 @@
|
||||
:for I from=($GlobalConfigVersion + 1) to=$ExpectedConfigVersion do={
|
||||
:set NotificationMessage ($NotificationMessage . \
|
||||
"\n * " . $GlobalConfigChanges->[ :tostr $I ]);
|
||||
$LogPrintExit info ("Change: " . $GlobalConfigChanges->[ :tostr $I ]) false;
|
||||
}
|
||||
:set GlobalConfigChanges;
|
||||
} on-error={
|
||||
|
Reference in New Issue
Block a user