global-functions: $ScriptInstallUpdate: log error on reloading global functions

This commit is contained in:
Christian Hesse 2021-01-03 21:21:17 +01:00
parent 156024ac2f
commit ab267d54b3

View file

@ -632,7 +632,11 @@
}
:if ($ScriptVal->"name" = "global-functions") do={
$LogPrintExit info ("Reloading global functions.") false;
:do {
/ system script run global-functions;
} on-error={
$LogPrintExit error ("Reloading global functions failed!") false;
}
}
} else={
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;