Add a way to re-sync mail DNS records
Also, make restore resync the admin domain record which gets messed up by the dns setup
This commit is contained in:
@@ -313,6 +313,9 @@ function restore(backupConfig, backupId, version, callback) {
|
||||
async.series([
|
||||
backups.restore.bind(null, backupConfig, backupId),
|
||||
autoprovision,
|
||||
// currently, our suggested restore flow is after a dnsSetup. This re-creates DKIM keys and updates the DNS
|
||||
// for this reason, we have to re-setup DNS after a restore. Once we have a 100% IP based restore, we can skip this
|
||||
mail.update.bind(null, config.adminDomain()),
|
||||
shell.sudo.bind(null, 'restart', [ RESTART_CMD ])
|
||||
], function (error) {
|
||||
debug('restore:', error);
|
||||
|
||||
Reference in New Issue
Block a user