(fix): installer stale resume redirect and account-setup phase delay

This commit is contained in:
Jake Barnby
2026-03-25 00:56:42 +13:00
parent f016d4b7cd
commit 4da726029c
2 changed files with 11 additions and 6 deletions
@@ -1059,20 +1059,24 @@
}
});
const startFreshInstall = () => {
clearInstallId?.();
clearInstallLock?.();
const newInstallId = generateInstallId();
storeInstallId?.(newInstallId);
startInstallStream(newInstallId);
};
const lock = getInstallLock?.();
const existingInstallId = lock?.installId || getStoredInstallId?.();
if (existingInstallId) {
resumeInstall(existingInstallId).then((resumed) => {
if (!resumed) {
clearInstallId?.();
clearInstallLock?.();
window.location.href = '/?step=1';
startFreshInstall();
}
});
} else {
const newInstallId = generateInstallId();
storeInstallId?.(newInstallId);
startInstallStream(newInstallId);
startFreshInstall();
}
};
+1
View File
@@ -610,6 +610,7 @@ class Install extends Action
if (!$isUpgrade) {
$this->updateProgress($progress, InstallerServer::STEP_DOCKER_CONTAINERS, InstallerServer::STATUS_COMPLETED, $messages);
$this->updateProgress($progress, InstallerServer::STEP_ACCOUNT_SETUP, InstallerServer::STATUS_IN_PROGRESS, messageOverride: 'Creating Appwrite account...');
}
if (!$isLocalInstall) {