mirror of
https://git.cloudron.io/cloudron/mastodon-app.git
synced 2024-11-25 17:21:00 +00:00
Print retention days
This commit is contained in:
parent
cef9a1bdbd
commit
90b0f3dd95
1 changed files with 3 additions and 1 deletions
|
@ -6,12 +6,14 @@ echo "=> Cleanup"
|
|||
cd /app/code
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
source /app/data/cache-env.sh
|
||||
|
||||
echo "=> Retention days set to ${CACHE_RETENTION_DAYS}"
|
||||
|
||||
echo "==> media cache ..."
|
||||
./bin/tootctl media remove --days=${CACHE_RETENTION_DAYS}
|
||||
|
||||
|
|
Loading…
Reference in a new issue