#!/usr/bin/env sh
set -euf
mkdir -p /var/lib/grafana/dashboards/default

curl -skf \
    --connect-timeout 60 \
    --max-time 60 \
    -H "Accept: application/json" \
    -H "Content-Type: application/json;charset=UTF-8" \
    "https://dashboards.metaplay.dev/stable/metaplay-server-v0.3.2.json" \
    > "/var/lib/grafana/dashboards/default/metaplay-server.json"
