mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptInstallUpdate: log error on reloading global functions
This commit is contained in:
@@ -632,7 +632,11 @@
|
|||||||
}
|
}
|
||||||
:if ($ScriptVal->"name" = "global-functions") do={
|
:if ($ScriptVal->"name" = "global-functions") do={
|
||||||
$LogPrintExit info ("Reloading global functions.") false;
|
$LogPrintExit info ("Reloading global functions.") false;
|
||||||
/ system script run global-functions;
|
:do {
|
||||||
|
/ system script run global-functions;
|
||||||
|
} on-error={
|
||||||
|
$LogPrintExit error ("Reloading global functions failed!") false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;
|
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;
|
||||||
|
Reference in New Issue
Block a user