iredmail多域名lets证书续签脚本

#! /bin/bash
mv /etc/nginx/sites-enabled/00-default.conf /etc/nginx/sites-available/00-default-temp.conf
mv /etc/nginx/sites-available/00-default-forlets.conf /etc/nginx/sites-enabled/00-default.conf
nginx -s reload
####
acme.sh --issue --nginx -d mail.abc.one -d mail.abc.two
mv /etc/nginx/sites-enabled/00-default.conf /etc/nginx/sites-available/00-default-forlets.conf
mv /etc/nginx/sites-available/00-default-temp.conf /etc/nginx/sites-enabled/00-default.conf
nginx -s reload
####
postfix reload
systemctl restart dovecot

再添加到任务计划中:59 02 1 * * bash /aqtest/renew-ssl.sh > /dev/null

参考:https://quericy.me/blog/860/

标签: lets

添加新评论