Remove spammy ssl renewal process and replace with the system checker and run it every 6 hours

This commit is contained in:
Jamie Curnow
2018-03-15 15:29:36 +10:00
parent f10d8e4aa9
commit f60ffd85da
10 changed files with 13 additions and 171 deletions
-5
View File
@@ -152,11 +152,6 @@ const internalHost = {
// SSL was turned off or hostname for ssl has changed so we should remove certs for the original
return internalSsl.deleteCerts(data.original)
.then(() => {
db.hosts.update({_id: data.updated._id}, {ssl_expires: 0}, {
multi: false,
upsert: false
});
data.updated.ssl_expires = 0;
return data;
});
}