feat: enhance curl command in Check Annunci and Update scripts for better error visibility
This commit is contained in:
parent
19b4693512
commit
08212355eb
2 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
set -e # Exit on any error
|
set -e # Exit on any error
|
||||||
|
|
||||||
echo "Starting Check Annunci job..."
|
echo "Starting Check Annunci job..."
|
||||||
if curl -f --connect-timeout 30 --max-time 300 "http://web:3000/api/trpc/annunci.checkAnnunci"; then
|
if curl -sS -f --connect-timeout 30 --max-time 300 "http://web:3000/api/trpc/annunci.checkAnnunci"; then
|
||||||
echo "Check Annunci job completed successfully"
|
echo "Check Annunci job completed successfully"
|
||||||
else
|
else
|
||||||
echo "Failed to Check Annunci" >&2
|
echo "Failed to Check Annunci" >&2
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
set -e # Exit on any error
|
set -e # Exit on any error
|
||||||
|
|
||||||
echo "Starting Update job..."
|
echo "Starting Update job..."
|
||||||
if curl -f --connect-timeout 30 --max-time 300 "http://localhost:1323/update"; then
|
if curl -sS -f --connect-timeout 30 --max-time 300 "http://localhost:1323/update"; then
|
||||||
echo "Update job completed successfully"
|
echo "Update job completed successfully"
|
||||||
else
|
else
|
||||||
echo "Failed to Update" >&2
|
echo "Failed to Update" >&2
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue