Let's Encrypt自動更新方法を変更

VPSの自動更新切れ

変更前

[root@ik3-123-45678 ~]# crontab -u root -e

00 05 * * * root certbot renew --force-renew | mail -s "Let's Encrypt update information" foo@hoge.com && systemctl restart httpd

変更後

[root@ik3-123-45678 ~]# crontab -u root -e
00 05 * * * root certbot renew --force-renew --post-hook "systemctl restart httpd.service" | mail -s "Let's Encrypt update information" foo@hoge.com