1
0
Fork 0

Making time to wait configurable

This commit is contained in:
Danil Smirnov 2020-12-29 13:13:45 +02:00
parent b91ec66d7e
commit b47755b875

View File

@ -3,7 +3,7 @@
# shellcheck source=functions.sh
source /app/functions.sh
seconds_to_wait=3600
SECONDS_TO_WAIT="${SECONDS_TO_WAIT:-3600}"
ACME_CA_URI="${ACME_CA_URI:-"https://acme-v02.api.letsencrypt.org/directory"}"
ACME_CA_TEST_URI="https://acme-staging-v02.api.letsencrypt.org/directory"
DEFAULT_KEY_SIZE="${DEFAULT_KEY_SIZE:-4096}"
@ -418,7 +418,7 @@ trap 'trap - EXIT' INT TERM
update_certs "$@"
# Wait some amount of time
echo "Sleep for ${seconds_to_wait}s"
sleep $seconds_to_wait & pid=$!
echo "Sleep for ${SECONDS_TO_WAIT}s"
sleep $SECONDS_TO_WAIT & pid=$!
wait
pid=