mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-23 09:12:15 +01:00
Shorten the test functions timeout
This commit is contained in:
parent
b3e7741c1c
commit
2ea189c165
@ -20,6 +20,6 @@ Started test web server for le2.wtf
|
||||
Symlink to le2.wtf certificate has been generated.
|
||||
The link is pointing to the file ./le2.wtf/fullchain.pem
|
||||
Started test web server for lim.it,le2.wtf
|
||||
Symlink for lim.it certificate was not generated under three minutes, timing out.
|
||||
Symlink for lim.it certificate was not generated under one minute, timing out.
|
||||
Symlink to le2.wtf certificate has been generated.
|
||||
The link is pointing to the file ./le2.wtf/fullchain.pem
|
||||
|
@ -39,8 +39,8 @@ function wait_for_symlink {
|
||||
local i=0
|
||||
local target
|
||||
until docker exec "$name" [ -L "/etc/nginx/certs/$domain.crt" ]; do
|
||||
if [ $i -gt 180 ]; then
|
||||
echo "Symlink for $domain certificate was not generated under three minutes, timing out."
|
||||
if [ $i -gt 60 ]; then
|
||||
echo "Symlink for $domain certificate was not generated under one minute, timing out."
|
||||
return 1
|
||||
fi
|
||||
i=$((i + 2))
|
||||
@ -58,9 +58,9 @@ function wait_for_symlink_rm {
|
||||
local domain="${1:?}"
|
||||
local name="${2:?}"
|
||||
local i=0
|
||||
if [ $i -gt 120 ]; then
|
||||
echo "Certificate symlink for $domain was not removed under two minutes, timing out."
|
||||
until docker exec "$name" [ ! -L "/etc/nginx/certs/$domain.crt" ]; do
|
||||
if [ $i -gt 60 ]; then
|
||||
echo "Certificate symlink for $domain was not removed under one minute, timing out."
|
||||
return 1
|
||||
fi
|
||||
i=$((i + 2))
|
||||
|
Loading…
Reference in New Issue
Block a user