Fix proxy config not generated on restore
This commit is contained in:
+3
-3
@@ -17,7 +17,7 @@ exports = module.exports = {
|
||||
startChangeLocation,
|
||||
changeLocation,
|
||||
|
||||
initLocation,
|
||||
setLocation,
|
||||
|
||||
DEFAULT_MEMORY_LIMIT: 512 * 1024 * 1024,
|
||||
};
|
||||
@@ -289,7 +289,7 @@ async function changeLocation(auditSource, progressCallback) {
|
||||
await restartIfActivated();
|
||||
}
|
||||
|
||||
async function initLocation(mailDomain, mailFqdn) {
|
||||
async function setLocation(mailDomain, mailFqdn) {
|
||||
assert.strictEqual(typeof mailDomain, 'string');
|
||||
assert.strictEqual(typeof mailFqdn, 'string');
|
||||
|
||||
@@ -309,7 +309,7 @@ async function startChangeLocation(subdomain, domain, auditSource) {
|
||||
|
||||
const fqdn = dns.fqdn(subdomain, domain);
|
||||
|
||||
await initLocation(domain, fqdn);
|
||||
await setLocation(domain, fqdn);
|
||||
|
||||
const taskId = await tasks.add(tasks.TASK_CHANGE_MAIL_LOCATION, [ auditSource ]);
|
||||
tasks.startTask(taskId, {});
|
||||
|
||||
Reference in New Issue
Block a user