Properly exit gunicorn on update

This commit is contained in:
Riley Housden 2021-12-01 02:00:49 -05:00
parent a67c520e92
commit 626aa1bbfa
Signed by: InValidFire
GPG key ID: 0D6208F6DF56B4D8

View file

@ -12,4 +12,4 @@ router = APIRouter()
@router.post("/system/update") @router.post("/system/update")
def update(access_token: APIKey = Depends(get_system_key)): def update(access_token: APIKey = Depends(get_system_key)):
output = subprocess.check_output(['git', 'pull'], encoding='utf-8') output = subprocess.check_output(['git', 'pull'], encoding='utf-8')
sys.exit() sys.exit(4)