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

10 lines
No EOL
248 B
Bash

#!/bin/sh
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