#!/bin/bash # ----------------------------------------------------------------------- # Dynasty Module: LXC Bootstrap (The Manifestor) # ----------------------------------------------------------------------- STACK=$1 # Passed from Proxmox Commander (portainer/arcane/dockhand/none) VERBOSE=$2 # Passed from Proxmox Commander (y/n) # 1. STYLING & OUTPUT GOLD='\033[38;5;178m'; BLUE='\033[38;5;45m'; NC='\033[0m' # Logic for Verbose vs Silent if [[ "$VERBOSE" == "y" ]]; then exec 3>&1 # Save stdout to fd 3 else exec 3>/dev/null # Send all output to the void fi echo -e "${BLUE}🐉 Dynasty Node Bootstrapping...${NC}" # 2. SYSTEM REFRESH echo -e "${GOLD}🔎 Updating System Repositories...${NC}" apt-get update >&3 2>&3 apt-get upgrade -y >&3 2>&3 # 3. DOCKER CORE INSTALLATION if [[ "$STACK" != "none" ]]; then echo -e "${GOLD}🐳 Installing Docker Engine & Compose...${NC}" curl -fsSL https://get.docker.com | sh >&3 2>&3 systemctl enable --now docker >&3 2>&3 fi # 4. STACK MANIFESTATION case $STACK in "portainer") echo -e "${GOLD}🚢 Manifesting Portainer Business...${NC}" docker volume create portainer_data >&3 2>&3 docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart always \ -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data \ portainer/portainer-ce:latest >&3 2>&3 ;; "arcane") echo -e "${GOLD}🔮 Manifesting Arcane Stack...${NC}" # Replace with your specific Arcane install command or git clone # docker run -d --name arcane ... ;; "dockhand") echo -e "${GOLD}⚓ Manifesting Dockhand...${NC}" # Replace with your specific Dockhand install command ;; esac # 5. DYNASTY FRAMEWORK INJECTION echo -e "${GOLD}🐉 Installing Dynasty Framework v2.3.7-pre...${NC}" curl -sSL https://git.dynastyrevolution.com/DYNR/DynastyRevolution-Scripts/raw/branch/v2.3.7-pre/install.sh | bash >&3 2>&3 echo -e "${BLUE}✅ Manifestation Complete. Node is now part of the Dynasty.${NC}"