further fixes
This commit is contained in:
parent
e8b7c3c506
commit
55342b9a51
@ -79,10 +79,23 @@ 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 [ "$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
|
||||
unzip qortal.zip
|
||||
rm qortal.zip
|
||||
|
Loading…
x
Reference in New Issue
Block a user