Add scripts for cleaning expired storage and updating jobs
This commit is contained in:
parent
52712c25d5
commit
a7fdb2227a
2 changed files with 20 additions and 0 deletions
10
apps/backend/scripts/clean_expired.sh
Normal file
10
apps/backend/scripts/clean_expired.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
||||
10
apps/backend/scripts/update.sh
Normal file
10
apps/backend/scripts/update.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e # Exit on any error
|
||||
|
||||
echo "Starting Update job..."
|
||||
if curl -f --connect-timeout 30 --max-time 300 "http://localhost:1323/update"; then
|
||||
echo "Update job completed successfully"
|
||||
else
|
||||
echo "Failed to Update" >&2
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue