mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $ScriptInstallUpdate: log and print changes
This commit is contained in:
parent
da581dedbf
commit
afd33b8e25
1 changed files with 2 additions and 0 deletions
|
@ -482,6 +482,7 @@
|
||||||
" is out of date. Please update " . $ConfigScript . ", then increase " . \
|
" is out of date. Please update " . $ConfigScript . ", then increase " . \
|
||||||
"\$GlobalConfigVersion (currently " . $GlobalConfigVersion . \
|
"\$GlobalConfigVersion (currently " . $GlobalConfigVersion . \
|
||||||
") to " . $ExpectedConfigVersion . " and re-run " . $ConfigScript . ".");
|
") to " . $ExpectedConfigVersion . " and re-run " . $ConfigScript . ".");
|
||||||
|
$LogPrintExit info ($NotificationMessage) false;
|
||||||
|
|
||||||
$LogPrintExit debug ("Fetching changelog.") false;
|
$LogPrintExit debug ("Fetching changelog.") false;
|
||||||
:do {
|
:do {
|
||||||
|
@ -496,6 +497,7 @@
|
||||||
:for I from=($GlobalConfigVersion + 1) to=$ExpectedConfigVersion do={
|
:for I from=($GlobalConfigVersion + 1) to=$ExpectedConfigVersion do={
|
||||||
:set NotificationMessage ($NotificationMessage . \
|
:set NotificationMessage ($NotificationMessage . \
|
||||||
"\n * " . $GlobalConfigChanges->[ :tostr $I ]);
|
"\n * " . $GlobalConfigChanges->[ :tostr $I ]);
|
||||||
|
$LogPrintExit info ("Change: " . $GlobalConfigChanges->[ :tostr $I ]) false;
|
||||||
}
|
}
|
||||||
:set GlobalConfigChanges;
|
:set GlobalConfigChanges;
|
||||||
} on-error={
|
} on-error={
|
||||||
|
|
Loading…
Reference in a new issue