maintenance: fix image sweeper script indentation

This commit is contained in:
Brad Stein 2026-01-10 20:26:46 -03:00
parent 99a6b4c054
commit b7e5a04265

View File

@ -17,7 +17,11 @@ data:
THRESHOLD_DAYS=3
fi
cutoff=$(date -d "${THRESHOLD_DAYS} days ago" +%s 2>/dev/null || date -v -"${THRESHOLD_DAYS}"d +%s)
cutoff=$(python3 - <<'PY'
import time, os
print(int(time.time()) - int(os.environ.get("THRESHOLD_DAYS", "14")) * 86400)
PY
)
RUNNING=$(chroot /host /bin/sh -c "crictl ps -a --quiet 2>/dev/null" | tr -s ' ' '\n' | sort -u | tr '\n' ' ')
IMAGES_JSON=$(chroot /host /bin/sh -c "crictl images -o json 2>/dev/null" || echo '{}')