diff --git a/ansible/roles/poudriere/files/poudboot.bash b/ansible/roles/poudriere/files/poudboot.bash index ac55526..b022c3d 100644 --- a/ansible/roles/poudriere/files/poudboot.bash +++ b/ansible/roles/poudriere/files/poudboot.bash @@ -97,14 +97,14 @@ function cmd_start { portshaker -U portshaker -M PORTUPDATE=$(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 "$LOG_RETENTION_DAYS" fi if [ $((now - LASTBUILD)) -gt "$BUILD_SECONDS" ]; then log "Building ports for $JAIL-$PORTS-$SET" build -j "$JAIL" -p "$PORTS" -z "$SET" -f /usr/local/etc/poudriere.d/$JAIL-$PORTS-$SET-pkglist 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 "$LOG_RETENTION_DAYS" fi cat > "$TIMES_FILE" <