diff --git a/app/letsencrypt_service b/app/letsencrypt_service index 7ae2450..156213e 100755 --- a/app/letsencrypt_service +++ b/app/letsencrypt_service @@ -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=