Skip to content

Instantly share code, notes, and snippets.

@kehers
Created June 8, 2018 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kehers/ce89a68ca215213cc51e01206eeb73a0 to your computer and use it in GitHub Desktop.
Save kehers/ce89a68ca215213cc51e01206eeb73a0 to your computer and use it in GitHub Desktop.
#!/bin/bash
certbot renew --quiet --webroot -w /var/www/public_html
DOMAIN="suet.co"
cat "/etc/letsencrypt/live/$DOMAIN/fullchain.pem" "/etc/letsencrypt/live/$DOMAIN/privkey.pem" > "/etc/letsencrypt/live/$DOMAIN/$DOMAIN.pem"
service haproxy restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment