2025-08-18 10:22:02 +02:00
|
|
|
#!/bin/sh
|
2025-08-18 09:54:38 +02:00
|
|
|
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
|