change named-compilezone to use /usr/bin/env rather than absolute path

This commit is contained in:
Rob Seastrom
2020-04-13 15:25:50 -04:00
committed by Ondřej Caletka
parent 3dd346294a
commit 7cb7c42d76
+1 -1
View File
@@ -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,