Properly exit gunicorn on update
This commit is contained in:
parent
a67c520e92
commit
626aa1bbfa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue