From e8d0c1741f7c9a6efc69405b105206579025e5c8 Mon Sep 17 00:00:00 2001 From: kx1t Date: Mon, 15 Apr 2024 20:56:10 +0200 Subject: [PATCH] fix cleanup --- rootfs/etc/s6-overlay/scripts/cleanup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/cleanup b/rootfs/etc/s6-overlay/scripts/cleanup index 62b990b..ed89165 100755 --- a/rootfs/etc/s6-overlay/scripts/cleanup +++ b/rootfs/etc/s6-overlay/scripts/cleanup @@ -18,11 +18,11 @@ source /scripts/common # LOOPTIME is the time between two runs cleanup. In our case, daily. LOOPTIME="1d" # -# OLDERTHAN indicates which age files can be deleted. This is in DAYS. +# OLDERTHAN indicates which age log files can be deleted. This is in DAYS. # It specifically applies to files in the HTML directory. # If $PF_DELETEAFTER is set to "0" then we never delete. # Note - files in /tmp will get deleted if they are older than 2 days. -OLDERTHAN="${PF_DELETEAFTER:-14}" +OLDERTHAN=7 # # MAXLOGLINES contains the max number of lines that we will keep in /tmp/planefence.log MAXLOGLINES=5000