Skip to content

Instantly share code, notes, and snippets.

@atomAltera
Last active January 6, 2018 12:14
Show Gist options
  • Save atomAltera/ef957ac42b09232cbfd3a2c233aa0e9e to your computer and use it in GitHub Desktop.
Save atomAltera/ef957ac42b09232cbfd3a2c233aa0e9e to your computer and use it in GitHub Desktop.
#!/bin/bash
cd $1
docker-compose stop nginx
docker-compose run --rm -p 443:443 nginx certbot renew --post-hook "mv /etc/letsencrypt/keys/0001_key-certbot.pem /etc/letsencrypt/keys/0000_key-certbot.pem"
docker-compose start nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment