Fix missing indentation
Add Missing indetation after addition of for-loop
This commit is contained in:
@@ -7,17 +7,17 @@ for inifile in cli-*.ini; do
|
|||||||
# Strip domain out of filename
|
# Strip domain out of filename
|
||||||
domain=${inifile:4:-4}
|
domain=${inifile:4:-4}
|
||||||
|
|
||||||
# sleep for a random time so not all certificates get renewed at the same time
|
# sleep for a random time so not all certificates get renewed at the same time
|
||||||
sleep 473
|
sleep 473
|
||||||
|
|
||||||
# Check validity of cert for domain
|
# Check validity of cert for domain
|
||||||
openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain}/cert.pem > /dev/null
|
openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain}/cert.pem > /dev/null
|
||||||
|
|
||||||
if [ \$? != 0 ]; then
|
if [ \$? != 0 ]; then
|
||||||
# run let's encrypt
|
# run let's encrypt
|
||||||
letsencrypt certonly -c ~/.config/letsencrypt/cli-${domain}.ini
|
letsencrypt certonly -c ~/.config/letsencrypt/cli-${domain}.ini
|
||||||
# import certificate
|
# import certificate
|
||||||
uberspace-add-certificate -k ~/.config/letsencrypt/live/${domain}/privkey.pem -c ~/.config/letsencrypt/live/${domain}/cert.pem
|
uberspace-add-certificate -k ~/.config/letsencrypt/live/${domain}/privkey.pem -c ~/.config/letsencrypt/live/${domain}/cert.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user