aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-15 15:05:14 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-18 10:02:23 +0100
commit27514adef4cdfb51675211644dad6819323b142f (patch)
treeb18cfaad73b0acb85435fe13386c8761c76420c7 /core/js/setupchecks.js
parent86bfd7339c4db1ccb178a93e7ca0133ad909333e (diff)
downloadnextcloud-server-27514adef4cdfb51675211644dad6819323b142f.tar.gz
nextcloud-server-27514adef4cdfb51675211644dad6819323b142f.zip
Migrate Cron checks to new SetupCheck API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r--core/js/setupchecks.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 8a70b6b8107..653036ba1bc 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -180,28 +180,6 @@
var afterCall = function(data, statusText, xhr) {
var messages = [];
if (xhr.status === 200 && data) {
- if (data.cronErrors.length > 0) {
- var listOfCronErrors = "";
- data.cronErrors.forEach(function(element){
- listOfCronErrors += '<li>';
- listOfCronErrors += element.error;
- listOfCronErrors += ' ';
- listOfCronErrors += element.hint;
- listOfCronErrors += '</li>';
- });
- messages.push({
- msg: t('core', 'It was not possible to execute the cron job via CLI. The following technical errors have appeared:') + '<ul>' + listOfCronErrors + '</ul>',
- type: OC.SetupChecks.MESSAGE_TYPE_ERROR
- })
- }
- if (data.cronInfo.diffInSeconds > 3600) {
- messages.push({
- msg: t('core', 'Last background job execution ran {relativeTime}. Something seems wrong. {linkstart}Check the background job settings ↗{linkend}.', {relativeTime: data.cronInfo.relativeTime})
- .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + data.cronInfo.backgroundJobsUrl + '">')
- .replace('{linkend}', '</a>'),
- type: OC.SetupChecks.MESSAGE_TYPE_ERROR
- });
- }
if (!data.isFairUseOfFreePushService) {
messages.push({
msg: t('core', 'This is the unsupported community build of Nextcloud. Given the size of this instance, performance, reliability and scalability cannot be guaranteed. Push notifications are limited to avoid overloading our free service. Learn more about the benefits of Nextcloud Enterprise at {linkstart}https://nextcloud.com/enterprise{linkend}.')