restore: remount sites in background
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user