blob: ff56115d29d6f8b219d049a66808eb606d2b1ebe (
plain) (
tree)
|
|
#!/bin/sh
echo "running renew certs..."
# Certificates exist
if [ -d /etc/letsencrypt/live/terminaldweller.com ]; then
# Check certificates and renew them
certbot renew --http-01-port=380
# Concatenate certificates
. /etc/scripts/concatenate-certificates.sh
# Update certificates in HAProxy
. /etc/scripts/update-haproxy-certificates.sh
# Certificates don't exist
else
# Execute certificate creation script
. /etc/scripts/create-certificates.sh
fi
|