From f46fc85ae8d53f7b7ca1ffbfc8d015bf18e99140 Mon Sep 17 00:00:00 2001 From: saavagebueno Date: Tue, 31 Mar 2026 23:48:50 -0400 Subject: [PATCH] Fix initial curl run --- install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/install.sh b/install.sh index 672d8c3..3e4a504 100644 --- a/install.sh +++ b/install.sh @@ -123,6 +123,24 @@ if [ -f "/usr/local/bin/dynr" ]; then exit 0 ;; esac +else + # --- NO INSTALL DETECTED: PROMPT TO INSTALL --- + echo -e "${GOLD}⚠️ No local framework detected on this node.${NC}" + read -p "Commence Genesis Manifest (Install Dynasty Framework)? (y/n): " INSTALL_CONFIRM < /dev/tty + + if [[ "$INSTALL_CONFIRM" == "y" || "$INSTALL_CONFIRM" == "Y" ]]; then + echo -e "${BLUE}🛰️ Manifesting Framework...${NC}" + + # Create directories and copy script to binary path + sudo mkdir -p /opt/dynr/modules + sudo curl -sSL "$REPO_RAW/install.sh" -o /usr/local/bin/dynr + sudo chmod +x /usr/local/bin/dynr + + echo -e "${GOLD}✅ Dynasty Framework Installed. Run 'dynr' to access the module menu.${NC}" + else + echo -e "${RED}Installation Aborted.${NC}" + exit 0 + fi fi echo -e "\n${BLUE}System Initialized. Version: $VERSION${NC}" \ No newline at end of file