dashboard/dismiss.sh

10 lines
238 B
Bash
Executable File

#!/bin/bash
# Usage: ./dismiss.sh
set -euo pipefail
PORT="${DASHBOARD_PORT:-3000}"
curl -sf -X DELETE "http://localhost:${PORT}/api/alert" \
&& echo "✓ Alerte révoquée" \
|| echo "✗ Serveur non disponible sur le port ${PORT}"