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