On dashboard or email location change, reconfigure immediately

This commit is contained in:
Girish Ramakrishnan
2023-08-21 18:18:03 +05:30
parent 9e093db7d8
commit 79af6c1a68
6 changed files with 36 additions and 36 deletions

View File

@@ -38,6 +38,7 @@ const assert = require('assert'),
os = require('os'),
path = require('path'),
paths = require('./paths.js'),
platform = require('./platform.js'),
reverseProxy = require('./reverseproxy.js'),
safe = require('safetydance'),
services = require('./services.js'),
@@ -282,8 +283,8 @@ async function changeLocation(auditSource, progressCallback) {
}
progressCallback({ percent: 90, message: 'Restarting mail server' });
await restartIfActivated();
await platform.onMailServerLocationChanged();
}
async function setLocation(subdomain, domain) {