Skip to content

Commit

Permalink
Fixed issue #31
Browse files Browse the repository at this point in the history
TRIES was never set to 0 so every certificate which was send in the past incremented this variable.
  • Loading branch information
hamburml authored Jul 19, 2017
1 parent b57f132 commit 87e3e2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions renewAndSendToProxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ for d in /etc/letsencrypt/live/*/ ; do
#send to proxy, retry up to 5 times with a timeout of $TIMEOUT seconds
printf "${GREEN}transmit $folder.combined.pem to $PROXY_ADDRESS${NC}\n"

#reset tries to 0
TRIES=0

exitcode=0
until [ $TRIES -ge $MAXRETRIES ]
do
Expand Down

0 comments on commit 87e3e2a

Please sign in to comment.