restore: remount sites in background

This commit is contained in:
Girish Ramakrishnan
2025-11-26 15:36:33 +01:00
parent cc8db71ecf
commit 48a85a620d
+3
View File
@@ -591,5 +591,8 @@ async function createPseudo(data) {
async function reinitAll() {
for (const site of await list()) {
if (!safe.fs.mkdirSync(`${paths.BACKUP_INFO_DIR}/${site.id}`, { recursive: true })) throw new BoxError(BoxError.FS_ERROR, `Failed to create info dir: ${safe.error.message}`);
const status = await getStatus(site);
if (status.state === 'active') continue;
safe(remount(site), { debug }); // background
}
}