You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
551 B

  1. #!/bin/bash
  2. # Type of auth method you want to use - overrides any stored auth methods
  3. # in the account. If you don't want to override them, set
  4. # AUTHMETHOD=""
  5. AUTHMETHOD="-a webroot --webroot-path /var/www/letsencrypt-root/"
  6. /usr/src/letsencrypt/letsencrypt-auto \
  7. --server https://acme-v01.api.letsencrypt.org/directory \
  8. --agree-tos \
  9. ${AUTHMETHOD} \
  10. -n \
  11. renew
  12. # Put other commands you need to run below here
  13. # like restarting apache, copying cert files, etc.
  14. /etc/init.d/apache2 restart &>/dev/null