From 25c691104f323655c5e8ff4cf96fa2cdaa87193c Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 12 Feb 2024 18:58:27 +0300 Subject: [PATCH] fix: non-0 exit status of is-active --- selfprivacy_api/jobs/upgrade_system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfprivacy_api/jobs/upgrade_system.py b/selfprivacy_api/jobs/upgrade_system.py index 58e37f8..42eb4ce 100644 --- a/selfprivacy_api/jobs/upgrade_system.py +++ b/selfprivacy_api/jobs/upgrade_system.py @@ -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()