From 03d258cc433771a27e721cec93e76777ac53e47a Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Mon, 19 Aug 2024 11:16:04 +0200 Subject: [PATCH] Configure webcron directly instead of via json --- templates/nextcloud-onlyoffice-config.yaml | 3 --- templates/setup-apps-configmap.yaml | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/nextcloud-onlyoffice-config.yaml b/templates/nextcloud-onlyoffice-config.yaml index 985dc621..2eb97cda 100644 --- a/templates/nextcloud-onlyoffice-config.yaml +++ b/templates/nextcloud-onlyoffice-config.yaml @@ -65,9 +65,6 @@ data: "debug": {{ .Values.nextcloud.debug }} }, "apps":{ - "core":{ - "backgroundjobs_mode": "webcron" - }, "onlyoffice":{ "DocumentServerInternalUrl": "", "DocumentServerUrl": "https:\/\/{{ .Values.onlyoffice.server_name }}\/", diff --git a/templates/setup-apps-configmap.yaml b/templates/setup-apps-configmap.yaml index 557f1372..135561b5 100644 --- a/templates/setup-apps-configmap.yaml +++ b/templates/setup-apps-configmap.yaml @@ -162,6 +162,9 @@ data: # Config settings from the configmap above run_as "php $occ config:import /var/local/config.json" + # We used to set this in `config.json` too, but ran into a nextcloud bug: + # https://github.com/nextcloud/server/issues/45083 + run_as "php $occ config:app:set --value webcron --type string core backgroundjobs_mode" echo "Updating database indices, columns, keys, etc." run_as "php $occ db:add-missing-indices --no-interaction" -- GitLab