From e7e06565f027509ad74add1e9572762f96f2dadf Mon Sep 17 00:00:00 2001 From: crowetic Date: Mon, 14 Jul 2025 20:38:54 -0700 Subject: [PATCH] final --- Qortal-Setup-Linux.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Qortal-Setup-Linux.sh b/Qortal-Setup-Linux.sh index 03b0bba..35c8eb3 100644 --- a/Qortal-Setup-Linux.sh +++ b/Qortal-Setup-Linux.sh @@ -198,14 +198,14 @@ if [ -n "$DISPLAY" ] || [ -n "$WAYLAND_DISPLAY" ] || [ -n "$XDG_CURRENT_DESKTOP" echo -e "${GREEN}✅ Qortal Core + Hub downloaded and ready!${NC}" # Optional: Install Desktop Launchers if desktop detected - if co and -v xdg-desktop-menu >/dev/null 2>&1; then + if command -v xdg-desktop-menu >/dev/null 2>&1; then echo -e "${CYAN}🖥️ Setting up desktop launchers...${NC}" mkdir -p "$HOME/.local/share/applications" cat > "$HOME/.local/share/applications/qortal-hub.desktop" < "${HOME}/Desktop/qortal-hub.desktop" </dev/null 2>&1; then + if command -v jq >/dev/null 2>&1; then if jq -e 'has("dataPath")' "${LATEST_BACKUP}/settings.json" >/dev/null 2>&1; then echo -e "\n ✅ dataPath found in backup settings." DATA_PATH=$(jq -r '.dataPath' "${LATEST_BACKUP}/settings.json") @@ -278,7 +278,7 @@ fi echo -e "\n${GREEN}🎉 Qortal setup complete! You can now start Qortal Core and Qortal Hub.${NC}" echo -e "\n${YELLOW}🛠️ Would you like to install Qortal Automation scripts by crowetic?${NC}" -echo -e "${CYAN}This will:\n - Ensure Qortal is always running\n - Stay within 1500 blocks of the network\n - Auto-update Core + potentially settings\n - Recover from co on issues\n - Configure autostart or cron${NC}" +echo -e "${CYAN}This will:\n - Ensure Qortal is always running\n - Stay within 1500 blocks of the network\n - Auto-update Core + potentially settings\n - Recover from common issues\n - Configure autostart or cron${NC}" echo -e "${YELLOW}Install automation now? (y/N) — auto-skip in 20 seconds...${NC}" INSTALL_AUTOMATION=true # default fallback