Print retention days

This commit is contained in:
Johannes Zellner 2023-04-26 13:13:05 +02:00
parent cef9a1bdbd
commit 90b0f3dd95

View file

@ -6,12 +6,14 @@ echo "=> Cleanup"
cd /app/code cd /app/code
if [[ ! -f /app/data/cache-env.sh ]]; then if [[ ! -f /app/data/cache-env.sh ]]; then
echo "==> Createing initial cache-env.sh" echo "==> Creating initial cache-env.sh"
cp /app/pkg/cache-env.sh.template /app/data/cache-env.sh cp /app/pkg/cache-env.sh.template /app/data/cache-env.sh
fi fi
source /app/data/cache-env.sh source /app/data/cache-env.sh
echo "=> Retention days set to ${CACHE_RETENTION_DAYS}"
echo "==> media cache ..." echo "==> media cache ..."
./bin/tootctl media remove --days=${CACHE_RETENTION_DAYS} ./bin/tootctl media remove --days=${CACHE_RETENTION_DAYS}