Update Qortal-Setup-Linux.sh

Resolved case where Qortal directory exists, but Qortal isn't synchronized, causes script to fail after failed killall command. Removed that killall for now.
This commit is contained in:
2025-07-20 21:31:03 +00:00
parent 9a1317fda9
commit d10b2ca874

View File

@@ -140,27 +140,16 @@ if [ -d "$HOME/qortal" ]; then
echo -e "${YELLOW}⚠️ Existing 'qortal' folder found. Backing it up...${NC}"
mv "$HOME/qortal" "$HOME/backups/qortal-$(date +%s)"
BACKUP_EXECUTED=true
curl -LO https://github.com/Qortal/qortal/releases/latest/download/qortal.zip
unzip qortal.zip
rm qortal.zip
chmod +x "$HOME/qortal/"*.sh
fi
fi
if [ "$QORTAL_CORE_GOOD" == "false" ]; then
if [ -d "${HOME}/qortal" ]; then
echo "${YELLOW} INITIAL BACKUP DIDN'T DETECT FAILED QORTAL, SECONDARY BACKUP CHECK DID, BACKING UP QORTAL FOR LATER RESTORE...AND FORCE-KILLING JAVA...${NC}"
killall -9 java
mkdir -p "$HOME/backups"
echo -e "${YELLOW}⚠️ Existing 'qortal' folder found. Backing it up...${NC}"
mv "$HOME/qortal" "$HOME/backups/qortal-$(date +%s)"
BACKUP_EXECUTED=true
fi
echo "${GREEN}Downloading Qortal Core...${NC}"
curl -LO https://github.com/Qortal/qortal/releases/latest/download/qortal.zip
unzip qortal.zip
rm qortal.zip
chmod +x "$HOME/qortal/"*.sh
chmod +x "$HOME/qortal/qort"
fi
# Download Architecture-specific Qortal Hub