Use random sleep again
As we now run the same part multiple times, sleep randomly in each loop cycle. To be a bit nice to servers and letsencrypt.
This commit is contained in:
@@ -8,7 +8,7 @@ for inifile in cli-*.ini; do
|
||||
domain=${inifile:4:-4}
|
||||
|
||||
# sleep for a random time so not all certificates get renewed at the same time
|
||||
sleep 473
|
||||
sleep $(expr $RANDOM % 600)
|
||||
|
||||
# Check validity of cert for domain
|
||||
openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain}/cert.pem > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user