From 626aa1bbfa8a35bf4aaae96f040b2a9995363362 Mon Sep 17 00:00:00 2001 From: Riley Housden Date: Wed, 1 Dec 2021 02:00:49 -0500 Subject: [PATCH] Properly exit gunicorn on update --- routers/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/system.py b/routers/system.py index 2b20d87..165592c 100644 --- a/routers/system.py +++ b/routers/system.py @@ -12,4 +12,4 @@ router = APIRouter() @router.post("/system/update") def update(access_token: APIKey = Depends(get_system_key)): output = subprocess.check_output(['git', 'pull'], encoding='utf-8') - sys.exit() + sys.exit(4)