mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
unbound: ignore CalledProcessError and make a note about it
This commit is contained in:
parent
b7de99e08b
commit
31f3e82c6b
@ -54,10 +54,10 @@ def unbound_control(commands, input=None, output_stream=None):
|
||||
nl='\n'
|
||||
input_string = f'{nl.join(input)}{nl}'
|
||||
|
||||
# XXX invoke can fail (non-zero exit code), but unclear why and what to do
|
||||
subprocess.run(['/usr/sbin/chroot', '-u', 'unbound', '-g', 'unbound', '/',
|
||||
'/usr/local/sbin/unbound-control', '-c', '/var/unbound/unbound.conf'] + commands,
|
||||
input=input_string, stdout=output_stream, stderr=subprocess.STDOUT,
|
||||
text=True, check=True)
|
||||
input=input_string, stdout=output_stream, stderr=subprocess.STDOUT, text=True)
|
||||
|
||||
if output_stream:
|
||||
output_stream.seek(0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user