Skip to content

Commit 08aa9cc

Browse files
authored
Disable Certbot's built in log rotation
1 parent 23e05f1 commit 08aa9cc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • root/etc/s6-overlay/s6-rc.d/init-certbot-config

root/etc/s6-overlay/s6-rc.d/init-certbot-config/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ grep -qF 'agree-tos' /config/etc/letsencrypt/cli.ini || echo 'agree-tos=true' >>
5959
# Check for broken dns credentials value in cli.ini and remove
6060
sed -i '/dns--credentials/d' /config/etc/letsencrypt/cli.ini
6161

62+
# Disable Certbot's built in log rotation
63+
set_ini_value "max-log-backups" "0" /config/etc/letsencrypt/cli.ini
64+
6265
# copy dns default configs
6366
cp -n /defaults/dns-conf/* /config/dns-conf/ 2> >(grep -v 'cp: not replacing')
6467
lsiown -R abc:abc /config/dns-conf

0 commit comments

Comments
 (0)