fix: ensure we use the correct variable for WAIT

A previous refactor ended up disabling waits completely, potentially causing app downtime during deploys.
This commit is contained in:
Jose Diaz-Gonzalez
2022-03-02 01:18:41 -05:00
parent d7baf8e014
commit f0095fec2f
3 changed files with 7 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ main() {
dokku_log_verbose "Stopping $cid ($PROC_TYPE)"
# Retire the containers to ensure they get removed
plugn trigger scheduler-register-retired "$APP" "$cid" "$WAIT"
plugn trigger scheduler-register-retired "$APP" "$cid" "$DOKKU_WAIT_TO_RETIRE"
# Disable the container restart policy
"$DOCKER_BIN" container update --restart=no "$cid" &>/dev/null || true