From 6c9dfc37dcc66d363bfca5bda86d11e4cde57e09 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 15 Aug 2019 08:58:32 +1000 Subject: [PATCH] Fixes for logrotate --- Dockerfile | 1 + logrotate.d/sbbsecho | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 50440d2..7e71dd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,6 +63,7 @@ VOLUME [ "/var/lib/zerotier-one" ] VOLUME [ "/opt/sbbs/data","/opt/sbbs/ctrl","/opt/sbbs/nodes","/opt/sbbs/fido","/opt/sbbs/text" ] COPY logrotate.d /etc/logrotate.d/ +RUN chmod 644 /etc/logrotate.d/* COPY supervisord.d /etc/supervisor/conf.d/ COPY init /sbin/init diff --git a/logrotate.d/sbbsecho b/logrotate.d/sbbsecho index 3c59bf5..e3d3c99 100644 --- a/logrotate.d/sbbsecho +++ b/logrotate.d/sbbsecho @@ -3,7 +3,7 @@ compress rotate 31 dateext - olddir /opt/sbbs/data/old + olddir /opt/sbbs/data/logs/old missingok createolddir 775 root root notifempty