Skip to content

Instantly share code, notes, and snippets.

@ZiTAL
Created June 9, 2020 18:08
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 ZiTAL/58462910e5dd2542ce2a246c560f98f4 to your computer and use it in GitHub Desktop.
Save ZiTAL/58462910e5dd2542ce2a246c560f98f4 to your computer and use it in GitHub Desktop.
apache: letsencrypt auto renew
#!/bin/bash
/etc/init.d/apache2 stop
/opt/letsencrypt/letsencrypt-auto renew
/etc/init.d/apache2 start
# crontab -e
# hilien behin
0 0 1 * * /root/scripts/bash/certificate_renew.sh
@ZiTAL
Copy link
Author

ZiTAL commented Jun 9, 2020

ez ahaztu lelau hau eitxen:

chmod +x /root/scripts/bash/certificate_renew.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment