Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

etc_cron-daily_letsencrypt-renew 531B

12345678910111213
  1. #!/bin/bash
  2. set -o errexit
  3. # Renew all live certificates with LetsEncrypt. This needs to run at least
  4. # once every three months, but recommended frequency is once a day.
  5. /root/letsencrypt/letsencrypt-auto renew --pre-hook="service apache2 stop" --post-hook="service apache2 start" \
  6. -c /etc/letsencrypt/cli.conf
  7. # Services that rely on LE certificates may need restarted and/or other actions.
  8. for script in $(find /etc/letsencrypt/postrenew/ -maxdepth 1 -type f -executable); do
  9. echo "Executing ${script}."
  10. $script
  11. done