mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-18 20:39:46 +00:00
fix: non-0 exit status of is-active
This commit is contained in:
parent
1a34558e23
commit
25c691104f
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ def rebuild_system_task(job: Job, upgrade: bool = False):
|
||||||
try:
|
try:
|
||||||
status = subprocess.run(
|
status = subprocess.run(
|
||||||
["systemctl", "is-active", unit_name],
|
["systemctl", "is-active", unit_name],
|
||||||
check=True,
|
check=False,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True,
|
text=True,
|
||||||
)
|
)
|
||||||
|
@ -96,7 +96,7 @@ def rebuild_system_task(job: Job, upgrade: bool = False):
|
||||||
"-o",
|
"-o",
|
||||||
"cat",
|
"cat",
|
||||||
],
|
],
|
||||||
check=True,
|
check=False,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True,
|
text=True,
|
||||||
).stdout.strip()
|
).stdout.strip()
|
||||||
|
|
Loading…
Add table
Reference in a new issue