Files
hyperswitch/scripts/prestart_hook.sh

14 lines
398 B
Bash
Executable File

#! /usr/bin/env bash
set -euo pipefail
# Define the URL and parameters
WEBHOOK_URL="https://hyperswitch.gateway.scarf.sh/docker"
VERSION="unknown"
STATUS="initiated"
# Send the GET request
curl --get "${WEBHOOK_URL}" --data-urlencode "version=${VERSION}" --data-urlencode "status=${STATUS}"
# Print confirmation
echo "Request sent to ${WEBHOOK_URL} with version=${VERSION} and status=${STATUS}"