fix: non-0 exit status of is-active

This commit is contained in:
Inex Code 2024-02-12 18:58:27 +03:00
parent 1a34558e23
commit 25c691104f

View file

@ -62,7 +62,7 @@ def rebuild_system_task(job: Job, upgrade: bool = False):
try:
status = subprocess.run(
["systemctl", "is-active", unit_name],
check=True,
check=False,
capture_output=True,
text=True,
)
@ -96,7 +96,7 @@ def rebuild_system_task(job: Job, upgrade: bool = False):
"-o",
"cat",
],
check=True,
check=False,
capture_output=True,
text=True,
).stdout.strip()