最初コミット

This commit is contained in:
2026-05-17 01:57:17 +09:00
commit 62326874ce
35 changed files with 663 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/sh
DATE=$(date +"%Y年%m月%d日")
echo "mail.076.co.jp SSL証明書が更新されました。 (${DATE})
---------------
" > /root/cert.txt
/bin/systemctl stop nginx >> /root/cert.txt
/usr/bin/certbot renew >> /root/cert.txt
/bin/systemctl start nginx >> /root/cert.txt
/bin/systemctl restart postfix >> /root/cert.txt
/bin/systemctl restart dovecot >> /root/cert.txt
cat /root/cert.txt | mail -s "mail.076.co.jp SSL証明書更新 (${DATE})" -r "server@076.co.jp" reports@076.co.jp
rm -rf /root/cert.txt