letsencrypt-auto renew script
Hello guys,
All we need is automate the process. This is a single script for letsencrypt auto renewal.
Step1. Create a file like “root/letsencrypt.sh” then put the following script, you can set the cron job as you like.
letsencrypt-auto renew script
#!/bin/bash #Updating letsencrypt python unset PYTHON_INSTALL_LAYOUT #echo -e "\n`date`: Lets Encrypt check started." /sbin/service httpd stop /opt/letsencrypt/letsencrypt-auto renew --renew-hook "/sbin/service httpd reload" #/opt/letsencrypt/letsencrypt-auto renew /sbin/service httpd start echo -e "\n`date`: Lets Encrypt check completed.\n" echo -e "==============================================================="