Skip to content

Commit 87e3e2a

Browse files
authored
Fixed issue #31
TRIES was never set to 0 so every certificate which was send in the past incremented this variable.
1 parent b57f132 commit 87e3e2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

renewAndSendToProxy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ for d in /etc/letsencrypt/live/*/ ; do
4040
#send to proxy, retry up to 5 times with a timeout of $TIMEOUT seconds
4141
printf "${GREEN}transmit $folder.combined.pem to $PROXY_ADDRESS${NC}\n"
4242

43+
#reset tries to 0
44+
TRIES=0
45+
4346
exitcode=0
4447
until [ $TRIES -ge $MAXRETRIES ]
4548
do

0 commit comments

Comments
 (0)