chore: deprecate STARTUP_DELAY (#678)

* chore: deprecate STARTUP_DELAY

* chore: adding better comments

* chore: whitespace correction
This commit is contained in:
toast-gear 2021-07-03 11:51:07 +01:00 committed by GitHub
parent dbab1a5e92
commit 82d1be7791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1,8 +1,13 @@
#!/bin/bash
# TODO: Remove `STARTUP_DELAY` entirely. `STARTUP_DELAY` is deprecated
# Issue #673, PR #678
if [ ! -z "${STARTUP_DELAY}" ]; then
echo "Delaying startup by ${STARTUP_DELAY} seconds" 1>&2
sleep ${STARTUP_DELAY}
elif [ ! -z "${STARTUP_DELAY_IN_SECONDS}" ]; then
echo "Delaying startup by ${STARTUP_DELAY_IN_SECONDS} seconds" 1>&2
sleep ${STARTUP_DELAY_IN_SECONDS}
fi
if [ -z "${GITHUB_URL}" ]; then