fix
This commit is contained in:
parent
01808d3e71
commit
fc039361b6
1 changed files with 7 additions and 9 deletions
|
|
@ -36,11 +36,10 @@ function revive() {
|
|||
if (checkHealthInterval) clearInterval(checkHealthInterval);
|
||||
window.location.reload();
|
||||
}, 2000)
|
||||
} else {
|
||||
console.log('Waiting for server to come back from dead...');
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.log('Waiting for server to come back from dead...');
|
||||
});
|
||||
return;
|
||||
}, 2000);
|
||||
}
|
||||
|
|
@ -52,14 +51,13 @@ function upgrade() {
|
|||
.then(response => {
|
||||
if (response.ok) {
|
||||
console.log('It\'s alive. Waiting for server to be dead...');
|
||||
} else {
|
||||
Toaster.success('Update done, restarting Coolify!')
|
||||
console.log('It\'s dead. Reviving... Standby... Bzz... Bzz...')
|
||||
if (checkIfIamDeadInterval) clearInterval(checkIfIamDeadInterval);
|
||||
revive();
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
Toaster.success('Update done, restarting Coolify!')
|
||||
console.log('It\'s dead. Reviving... Standby... Bzz... Bzz...')
|
||||
if (checkIfIamDeadInterval) clearInterval(checkIfIamDeadInterval);
|
||||
revive();
|
||||
});
|
||||
return;
|
||||
}, 2000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue