services: simplify startup logic
This commit is contained in:
@@ -28,7 +28,7 @@ exports = module.exports = {
|
||||
setMailEnabled,
|
||||
setBanner,
|
||||
|
||||
startMail: restartMail,
|
||||
startMail,
|
||||
restartMail,
|
||||
handleCertChanged,
|
||||
getMailAuth,
|
||||
@@ -746,6 +746,12 @@ async function restartMail() {
|
||||
await configureMail(settings.mailFqdn(), settings.dashboardDomain(), mailConfig);
|
||||
}
|
||||
|
||||
async function startMail(existingInfra) {
|
||||
assert.strictEqual(typeof existingInfra, 'object');
|
||||
|
||||
await restartMail();
|
||||
}
|
||||
|
||||
async function restartMailIfActivated() {
|
||||
const activated = await users.isActivated();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user