infoalloggi-monorepo/apps/backend/scripts/clean_expired.sh

10 lines
305 B
Bash
Raw Normal View History

#!/bin/sh
set -e # Exit on any error
echo "Starting expired storage cleanup..."
if curl -f --connect-timeout 30 --max-time 300 "http://localhost:1323/storage/remove-expired"; then
echo "Expired storage cleanup completed successfully"
else
echo "Failed to clean expired storage" >&2
exit 1
fi