From 21c4ba54a57e9bf0934b1370194aea44f35d64c4 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Thu, 11 Jan 2024 17:11:42 -0600 Subject: [PATCH] fix: docker health checks (#2979) --- mealie/scripts/healthcheck.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mealie/scripts/healthcheck.py b/mealie/scripts/healthcheck.py index 9b1f36475c6a..135daeb66855 100644 --- a/mealie/scripts/healthcheck.py +++ b/mealie/scripts/healthcheck.py @@ -1,4 +1,5 @@ import os +import sys import requests @@ -14,9 +15,9 @@ def main(): r = requests.get(url) if r.status_code == 200: - exit(0) + sys.exit(0) else: - exit(1) + sys.exit(1) if __name__ == "__main__":