diff --git a/README.md b/README.md index 312b645..0ec5c92 100644 --- a/README.md +++ b/README.md @@ -100,29 +100,15 @@ Then restart the OpenResty service: $ sudo service openresty restart -#### automate TSL cert renewal - -##### renew TSL certs - -Open crontab: - - $ crontab -e - -Add the following line, then save and exit: - - 19 4 1 * * /usr/bin/dehydrated --config /var/www/config --cron >/dev/null 2>&1 - -##### restart service +#### automate TSL cert renewal with cron Open root's crontab: $ sudo crontab -e -Add the following line: +Add the following line, then save and exit: - @monthly /usr/bin/systemctl restart openresty.service - -Save and exit. + 19 4 1 * * /usr/bin/dehydrated --config /var/www/config --cron >/dev/null 2>&1 && /usr/bin/systemctl restart openresty.service ## gotchas