aboutsummaryrefslogtreecommitdiffstats
path: root/lease-script
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-07-08 17:51:55 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-07-08 21:03:31 +0200
commit6c9f733d9623d0c774b3d62a1161ea56d2cae181 (patch)
treec4402c877f92ad3fac3c2157b17912f5085576dc /lease-script
parent6bf8cd5fac77aa5db804c3180777d495b5d2ed26 (diff)
lease-script: add the order in log
Diffstat (limited to 'lease-script')
-rw-r--r--lease-script4
1 files 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;