From 7cb7c42d769cbf81b23f1f0f7d2902c850e65737 Mon Sep 17 00:00:00 2001 From: Rob Seastrom Date: Mon, 13 Apr 2020 15:25:50 -0400 Subject: [PATCH] change named-compilezone to use /usr/bin/env rather than absolute path --- dzonegit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzonegit.py b/dzonegit.py index bc5c2d4..b0ab266 100644 --- a/dzonegit.py +++ b/dzonegit.py @@ -119,7 +119,7 @@ def compile_zone(zonename, zonedata, unixtime=None, missing_dot=False): "CompileResults", "success, serial, zonehash, stderr", ) r = subprocess.run( - ["/usr/sbin/named-compilezone", "-o", "-", zonename, "/dev/stdin"], + ["/usr/bin/env", "named-compilezone", "-o", "-", zonename, "/dev/stdin"], input=unixtime_directive(zonedata, unixtime), stdout=subprocess.PIPE, stderr=subprocess.PIPE,