mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $ScriptInstallUpdate: log error on reloading global configuration
This commit is contained in:
parent
90672798e8
commit
156024ac2f
1 changed files with 5 additions and 1 deletions
|
@ -624,7 +624,11 @@
|
||||||
:if ($ScriptVal->"name" = "global-config" && \
|
:if ($ScriptVal->"name" = "global-config" && \
|
||||||
[ :len [ / system script find where name="global-config-overlay" ] ] > 0) do={
|
[ :len [ / system script find where name="global-config-overlay" ] ] > 0) do={
|
||||||
$LogPrintExit info ("Reloading global configuration and overlay.") false;
|
$LogPrintExit info ("Reloading global configuration and overlay.") false;
|
||||||
|
:do {
|
||||||
/ system script { run global-config; run global-config-overlay; }
|
/ system script { run global-config; run global-config-overlay; }
|
||||||
|
} on-error={
|
||||||
|
$LogPrintExit error ("Reloading global configuration and overlay failed! Syntax error?") false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
:if ($ScriptVal->"name" = "global-functions") do={
|
:if ($ScriptVal->"name" = "global-functions") do={
|
||||||
$LogPrintExit info ("Reloading global functions.") false;
|
$LogPrintExit info ("Reloading global functions.") false;
|
||||||
|
|
Loading…
Reference in a new issue