mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-18 00:19:15 +00:00
fix: non-0 exit status of is-active
This commit is contained in:
parent
1a34558e23
commit
25c691104f
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue