Fix initial curl run
All checks were successful
Update Dispatches / refresh-news (push) Successful in 1s

This commit is contained in:
2026-03-31 23:48:50 -04:00
parent 9cc1749509
commit f46fc85ae8

View File

@@ -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}"