From 3e5809a7bce747fce5d9a9386076362d722b56b5 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Mon, 28 Aug 2017 10:34:23 +0200
Subject: [PATCH] try renew every week

---
 installCertbot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/installCertbot.sh b/installCertbot.sh
index 2c6a237..4c17d2b 100755
--- a/installCertbot.sh
+++ b/installCertbot.sh
@@ -24,7 +24,7 @@ apt-get update && apt-get install certbot
 DOMAINS="dolibarr.${DOMAIN},nextcloud.${DOMAIN},tetras-back.${DOMAIN}"
 ARGS="--hsts --must-staple --email=${SERVER_ADMIN} --domains=${DOMAINS}
     --text --agree-tos"
-line="0 1 `date +%d` */2 * /usr/bin/certbot renew --force-renewal"
+line="0 1 * * `date +%u` /usr/bin/certbot renew --force-renewal"
 if [ "${WEB_SERVER}" == "apache2" ]
 then
     additional_packages="python-certbot-apache"
-- 
GitLab