Fix proxy config not generated on restore

This commit is contained in:
Girish Ramakrishnan
2023-08-16 11:34:41 +05:30
parent e33ae8ae11
commit 1133a41b77
4 changed files with 18 additions and 16 deletions
+3 -3
View File
@@ -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, {});