From d11e50faa7521557ec60f69940120959f326fe1b Mon Sep 17 00:00:00 2001
From: thebaptiste <jean-baptiste.veslin@meteo.fr>
Date: Wed, 13 Nov 2024 12:48:50 +0000
Subject: [PATCH] build: improvements

---
 renew_https_certificate.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/renew_https_certificate.sh b/renew_https_certificate.sh
index 5f3dee8..a3ccf62 100755
--- a/renew_https_certificate.sh
+++ b/renew_https_certificate.sh
@@ -10,5 +10,7 @@ if [ "$NB_DAYS_BEFORE_EXP" -lt "30" ]; then
     chmod 0644 /home/mfserv/config/fullchain.pem /home/mfserv/config/privkey.pem
     chown mfserv:metwork /home/mfserv/config/fullchain.pem /home/mfserv/config/privkey.pem
     /usr/sbin/service metwork start mfserv 
+    certbot certificates > /root/certificates.log
 fi
-certbot certificates > /root/certificates.log
+/usr/bin/rm -f /var/log/letsencrypt/letsencrypt.log.[3456789][0123456789]
+