From 6c9f733d9623d0c774b3d62a1161ea56d2cae181 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 8 Jul 2021 17:51:55 +0200 Subject: lease-script: add the order in log --- lease-script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lease-script b/lease-script index 97d5372..44360a4 100644 --- a/lease-script +++ b/lease-script @@ -40,10 +40,10 @@ $LogPrintExit2 debug $0 ("DHCP Server " . $leaseServerName . " " . \ } } -:foreach Script in=$RunOrder do={ +:foreach Order,Script in=$RunOrder do={ :if ([ :len [ / system script job find where script=$Script ] ] < 2) do={ :do { - $LogPrintExit2 debug $0 ("Running script: " . $Script) false; + $LogPrintExit2 debug $0 ("Running script with order " . $Order . ": " . $Script) false; / system script run $Script; } on-error={ $LogPrintExit2 warning $0 ("Running script '" . $Script . "' failed!") false; -- cgit v1.2.3-70-g09d2