#!/usr/bin/env bash # Short URL installer for Azalea self-host. # Usage: curl -fsSL https://azalea.rexsystems.me/script.sh | bash set -euo pipefail INSTALL_URL="${AZALEA_INSTALL_URL:-https://raw.githubusercontent.com/rexsystems/azalea/master/services/azalea-server/install.sh}" need_cmd() { command -v "$1" >/dev/null 2>&1 || { printf 'error: missing command: %s\n' "$1" >&2 exit 1 } } need_cmd curl need_cmd bash tmp="$(mktemp)" trap 'rm -f "$tmp"' EXIT printf 'Fetching installer from GitHub…\n' curl -fsSL "$INSTALL_URL" -o "$tmp" bash "$tmp"