#!/usr/bin/env bash # scripts/entry/install.sh — frozen bootstrap. Customer entry point, served # at the route this bootstrap is published under (production or staging). # Contract: resolve version -> fetch+verify the versioned real script -> # hand over. See _common.sh. Never edit release-specific behaviour here. set -euo pipefail VENACT_ENTRY_DIR="" if [ -n "${BASH_SOURCE[0]:-}" ] && [ -f "${BASH_SOURCE[0]}" ]; then VENACT_ENTRY_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" fi if [ -n "$VENACT_ENTRY_DIR" ] && [ -f "$VENACT_ENTRY_DIR/_common.sh" ]; then # shellcheck source=./_common.sh . "$VENACT_ENTRY_DIR/_common.sh" else install_server="${INSTALL_SERVER:-https://install.venact.eu}" common_tmp=$(mktemp) curl -fsSL "${install_server}/entry/_common.sh" -o "$common_tmp" \ || { echo "[ERROR] Failed to fetch entry bootstrap common lib from ${install_server}/entry/_common.sh" >&2; rm -f "$common_tmp"; exit 1; } # shellcheck source=/dev/null . "$common_tmp" rm -f "$common_tmp" fi venact_entry_handover "install.sh" "$@"