Send cert renewal errors to support@cloudron.io as well

Part of #166
This commit is contained in:
Girish Ramakrishnan
2017-01-07 12:29:40 -08:00
parent f354baf685
commit 6fd3466db1

View File

@@ -490,7 +490,7 @@ function certificateRenewalError(domain, message) {
var mailOptions = {
from: mailConfig().from,
to: config.provider() === 'caas' ? 'support@cloudron.io' : adminEmails.join(', '),
to: config.provider() === 'caas' ? 'support@cloudron.io' : adminEmails.concat('support@cloudron.io').join(', '),
subject: util.format('[%s] Certificate renewal error', domain),
text: render('certificate_renewal_error.ejs', { domain: domain, message: message, format: 'text' })
};