From effc4ab0f56119041ac6efecdbf0a782714ec783 Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Wed, 24 Aug 2022 21:18:38 -0700 Subject: Hide branch select until it's working --- backend/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/helpers.py b/backend/helpers.py index 5e26f163..b3c8a51e 100644 --- a/backend/helpers.py +++ b/backend/helpers.py @@ -75,9 +75,9 @@ async def is_systemd_unit_active(unit_name: str) -> bool: async def stop_systemd_unit(unit_name: str) -> subprocess.CompletedProcess: cmd = ["systemctl", "stop", unit_name] - return subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) async def start_systemd_unit(unit_name: str) -> subprocess.CompletedProcess: cmd = ["systemctl", "start", unit_name] - return subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) -- cgit v1.2.3