From 48764314f9e27df166740ee381ae3a8b444fb452 Mon Sep 17 00:00:00 2001 From: Benoit S Date: Sun, 29 Aug 2021 09:35:47 +0900 Subject: [PATCH] Add missing default values --- tootpaste.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tootpaste.sh b/tootpaste.sh index 778e424..726a1d1 100644 --- a/tootpaste.sh +++ b/tootpaste.sh @@ -14,12 +14,12 @@ DRY_RUN=${DRY_RUN:-true} TLS_EXPIRED_MAX_SEC=${TLS_EXPIRED_MAX_SEC:-1210000} # How many seconds to wait to connect to an instance already in error in the # past -INSTANCE_LAST_CHANCE_TIMEOUT=30 +INSTANCE_LAST_CHANCE_TIMEOUT=${INSTANCE_LAST_CHANCE_TIMEOUT:-30} # How old media attachments have to be before getting removed -MEDIA_REMOVE_DAYS=7 -CARDS_REMOVE_DAYS=15 +MEDIA_REMOVE_DAYS=${MEDIA_REMOVE_DAYS:-7} +CARDS_REMOVE_DAYS=${CARDS_REMOVE_DAYS:-15} # How old unreferenced statuses have to be before getting removed -STATUSES_REMOVE_DAYS=30 +STATUSES_REMOVE_DAYS=${STATUSES_REMOVE_DAYS:-30} # Path to logs files CULL_LOG=/tmp/$(mktemp tootpaste_XXX) TLS_EXPIRED_LOG=/tmp/$(mktemp tootpaste_XXX)