Also restart turn server on dashboard domain change

This commit is contained in:
Johannes Zellner
2020-03-31 14:52:09 +02:00
parent b00a7e3cbb
commit 7cb0c31c59

View File

@@ -21,7 +21,8 @@ exports = module.exports = {
runSystemChecks: runSystemChecks,
};
var apps = require('./apps.js'),
var addons = require('./addons.js'),
apps = require('./apps.js'),
appstore = require('./appstore.js'),
assert = require('assert'),
async = require('async'),
@@ -326,6 +327,7 @@ function setDashboardAndMailDomain(domain, auditSource, callback) {
if (error) return callback(error);
mail.onMailFqdnChanged(NOOP_CALLBACK); // this will update dns and re-configure mail server
addons.restartService('turn', NOOP_CALLBACK); // to update the realm variable
callback(null);
});