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

View file

@ -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;
/ 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={ :if ($ScriptVal->"name" = "global-functions") do={
$LogPrintExit info ("Reloading global functions.") false; $LogPrintExit info ("Reloading global functions.") false;