mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-02 17:24:30 +02: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" && \
|
||||
[ :len [ / system script find where name="global-config-overlay" ] ] > 0) do={
|
||||
$LogPrintExit info ("Reloading global configuration and overlay.") false;
|
||||
/ system script { run global-config; run global-config-overlay; }
|
||||
:do {
|
||||
/ 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={
|
||||
$LogPrintExit info ("Reloading global functions.") false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue