Add backup configuration check together with out of disk check cron job

This commit is contained in:
Johannes Zellner
2019-02-06 15:47:56 +01:00
parent 2bb85dc16c
commit abc867935b
3 changed files with 41 additions and 12 deletions
+5 -5
View File
@@ -35,7 +35,7 @@ var gJobs = {
backup: null,
boxUpdateChecker: null,
caasHeartbeat: null,
checkDiskSpace: null,
systemChecks: null,
certificateRenew: null,
cleanupBackups: null,
cleanupEventlog: null,
@@ -115,10 +115,10 @@ function recreateJobs(tz) {
timeZone: tz
});
if (gJobs.checkDiskSpace) gJobs.checkDiskSpace.stop();
gJobs.checkDiskSpace = new CronJob({
cronTime: '00 30 */4 * * *', // every 4 hours
onTick: cloudron.checkDiskSpace,
if (gJobs.systemChecks) gJobs.systemChecks.stop();
gJobs.systemChecks = new CronJob({
cronTime: '00 30 * * * *', // every hour
onTick: cloudron.systemChecks,
start: true,
timeZone: tz
});