further fixes

This commit is contained in:
crowetic 2025-07-14 19:20:55 -07:00
parent e8b7c3c506
commit 55342b9a51

View File

@ -79,10 +79,23 @@ if [ -d "$HOME/qortal" ]; then
echo -e "${YELLOW}⚠️ Existing 'qortal' folder found. Backing it up...${NC}" echo -e "${YELLOW}⚠️ Existing 'qortal' folder found. Backing it up...${NC}"
mv "$HOME/qortal" "$HOME/backups/qortal-$(date +%s)" mv "$HOME/qortal" "$HOME/backups/qortal-$(date +%s)"
BACKUP_EXECUTED=true 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
fi fi
if [ QORTAL_CORE_GOOD=false ]; then 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
curl -LO https://github.com/Qortal/qortal/releases/latest/download/qortal.zip curl -LO https://github.com/Qortal/qortal/releases/latest/download/qortal.zip
unzip qortal.zip unzip qortal.zip
rm qortal.zip rm qortal.zip