1
0
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 configuration

This commit is contained in:
Christian Hesse
2021-01-03 21:20:04 +01:00
parent 90672798e8
commit 156024ac2f

@ -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;