10 lines
307 B
Bash
10 lines
307 B
Bash
|
|
#!/bin/bash
|
||
|
|
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
|