Ugh had some weird issue because for some reason in some context subprocess uses /bin/sh ...

This commit is contained in:
Alexandre Aubin 2019-11-20 20:16:28 +01:00
parent 16f6d500a3
commit fa5c0e9a70

View file

@ -342,6 +342,7 @@ def service_status(names=[]):
if "test_conf" in services[name]:
p = subprocess.Popen(services[name]["test_conf"],
shell=True,
executable='/bin/bash',
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)