gpt4 book ai didi

lets-encrypt - 禁用让我们加密 certbot 每日更新电子邮件

转载 作者:行者123 更新时间:2023-12-03 16:49:54 25 4
gpt4 key购买 nike

在 cronjob 上运行时,是否可以告诉 certbot 不要每天给我发电子邮件?

我的定时任务是:

0 0 * * * sudo /usr/bin/certbot renew --post-hook "sudo service nginx reload"

我收到电子邮件:
Cert not yet due for renewal

我只想在证书需要续订、续订失败或已续订时收到电子邮件。

我不需要每天收到通知,没有什么可以更新。

最佳答案

根据Certbot user guide ,如果您只想收到续订失败的通知,则可以添加 --quiet命令的选项:

certbot renew --quiet --post-hook "sudo service nginx reload"

如果您只想抑制这一特定消息,那么您可以修改您的命令以使用 grep丢弃消息,例如:
certbot renew --post-hook "sudo service nginx reload" | grep -v "not yet due for renewal"

关于lets-encrypt - 禁用让我们加密 certbot 每日更新电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60238682/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com