From 5e810062080fd9afb0dfc150a2cdb6292db11909 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 1 Sep 2023 11:25:36 -0400 Subject: [PATCH] Reduce poudriere log retention to 30 days. --- ansible/roles/poudriere/files/poudboot.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/poudriere/files/poudboot.bash b/ansible/roles/poudriere/files/poudboot.bash index ff9b414..ac55526 100644 --- a/ansible/roles/poudriere/files/poudboot.bash +++ b/ansible/roles/poudriere/files/poudboot.bash @@ -9,6 +9,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" : ${INFO_DIR:="/opt/poudriere/run_info"} : ${PORT_UPDATE_SECONDS:="86400"} : ${BUILD_SECONDS:="7200"} +: ${LOG_RETENTION_DAYS:="30"} ############## Setup ######################### @@ -103,7 +104,7 @@ function cmd_start { LASTBUILD=$(date +%s) # Cleanup old unused dist files poudriere distclean -y -p "$PORTS" -f /usr/local/etc/poudriere.d/$JAIL-$PORTS-$SET-pkglist - poudriere logclean -y 180 + poudriere logclean -y "$LOG_RETENTION_DAYS" fi cat > "$TIMES_FILE" <