run system checks immediately post activation

this will notify about backup configuration
This commit is contained in:
Girish Ramakrishnan
2019-02-06 11:15:46 -08:00
parent 89446d56e0
commit 31d0a5c40e
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ exports = module.exports = {
setDashboardDomain: setDashboardDomain,
renewCerts: renewCerts,
systemChecks: systemChecks,
runSystemChecks: runSystemChecks,
// exposed for testing
_checkDiskSpace: checkDiskSpace
@@ -188,12 +188,12 @@ function isRebootRequired(callback) {
}
// called from cron.js
function systemChecks() {
function runSystemChecks() {
async.parallel([
checkBackupConfiguration,
checkDiskSpace
], function () {
debug('systemChecks: done');
debug('runSystemChecks: done');
});
}
+2 -1
View File
@@ -118,8 +118,9 @@ function recreateJobs(tz) {
if (gJobs.systemChecks) gJobs.systemChecks.stop();
gJobs.systemChecks = new CronJob({
cronTime: '00 30 * * * *', // every hour
onTick: cloudron.systemChecks,
onTick: cloudron.runSystemChecks,
start: true,
runOnInit: true, // run system check immediately
timeZone: tz
});