Browse Source

Fix missing indentation

Add Missing indetation after addition of for-loop
master
Jonathan Golder 3 years ago
parent
commit
f989e9f9a2
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      letsencrypt-renew.sh

+ 10
- 10
letsencrypt-renew.sh View File

@@ -7,17 +7,17 @@ for inifile in cli-*.ini; do
# Strip domain out of filename
domain=${inifile:4:-4}

# sleep for a random time so not all certificates get renewed at the same time
sleep 473
# sleep for a random time so not all certificates get renewed at the same time
sleep 473

# Check validity of cert for domain
openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain}/cert.pem > /dev/null
# Check validity of cert for domain
openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain}/cert.pem > /dev/null

if [ \$? != 0 ]; then
# run let's encrypt
letsencrypt certonly -c ~/.config/letsencrypt/cli-${domain}.ini
# import certificate
uberspace-add-certificate -k ~/.config/letsencrypt/live/${domain}/privkey.pem -c ~/.config/letsencrypt/live/${domain}/cert.pem
fi
if [ \$? != 0 ]; then
# run let's encrypt
letsencrypt certonly -c ~/.config/letsencrypt/cli-${domain}.ini
# import certificate
uberspace-add-certificate -k ~/.config/letsencrypt/live/${domain}/privkey.pem -c ~/.config/letsencrypt/live/${domain}/cert.pem
fi

done

Loading…
Cancel
Save