aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-15 15:05:14 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-01-16 10:49:19 +0100
commit46ebe16c83281671512f7bc3731c99cfc23c0871 (patch)
treece87777b1ab2821f333fdf632a8272915d83cd13 /core
parent58b31a9d24edd85c72e7248bab6fc340eac28751 (diff)
downloadnextcloud-server-46ebe16c83281671512f7bc3731c99cfc23c0871.tar.gz
nextcloud-server-46ebe16c83281671512f7bc3731c99cfc23c0871.zip
Migrate Cron checks to new SetupCheck API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-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}.')