restore: secrets must be copied over after downloading box backup
This commit is contained in:
@@ -62,7 +62,7 @@ async function setupTask(domain, auditSource) {
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
try {
|
||||
await blobs.initSecrets();
|
||||
await blobs.generateSecrets();
|
||||
await cloudron.setupDnsAndCert(constants.DASHBOARD_LOCATION, domain, auditSource, (progress) => setProgress('setup', progress.message));
|
||||
await cloudron.setDashboardDomain(domain, auditSource);
|
||||
setProgress('setup', 'Done'),
|
||||
@@ -154,6 +154,7 @@ async function restoreTask(backupConfig, backupId, sysinfoConfig, options, audit
|
||||
try {
|
||||
setProgress('restore', 'Downloading box backup');
|
||||
await backuptask.restore(backupConfig, backupId, (progress) => setProgress('restore', progress.message));
|
||||
await blobs.restoreSecrets();
|
||||
|
||||
setProgress('restore', 'Downloading mail backup');
|
||||
const mailBackups = await backups.getByIdentifierAndStatePaged(backups.BACKUP_IDENTIFIER_MAIL, backups.BACKUP_STATE_NORMAL, 1, 1);
|
||||
|
||||
Reference in New Issue
Block a user