From d64c8d97fc9fb707de76e1f50867946916225def Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Thu, 5 Sep 2024 19:27:18 +0200 Subject: [PATCH] feat: Add scripts to expand config and update settings for Nextcloud 28 --- imageroot/update-module.d/10expand_config | 1 + imageroot/update-module.d/15update_settings | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 120000 imageroot/update-module.d/10expand_config create mode 100755 imageroot/update-module.d/15update_settings diff --git a/imageroot/update-module.d/10expand_config b/imageroot/update-module.d/10expand_config new file mode 120000 index 0000000..2ba7690 --- /dev/null +++ b/imageroot/update-module.d/10expand_config @@ -0,0 +1 @@ +../actions/create-module/20expandconfig \ No newline at end of file diff --git a/imageroot/update-module.d/15update_settings b/imageroot/update-module.d/15update_settings new file mode 100755 index 0000000..f88ae49 --- /dev/null +++ b/imageroot/update-module.d/15update_settings @@ -0,0 +1,20 @@ +#!/bin/bash + +# +# Copyright (C) 2024 Nethesis S.r.l. +# SPDX-License-Identifier: GPL-3.0-or-later +# + +# added for nextcloud 28 (1.0.8) +# set trusted proxies to avoid warnings +occ config:system:set trusted_proxies 0 --value='127.0.0.1' + +# set maintenance window start (maintenance cron will run at 1:00) +occ config:system:set maintenance_window_start --value=1 --type=integer + +# with nextcloud 28 the logreader app is compatible only with `file` log type +# see https://github.com/nextcloud/server/issues/45517 +# Failed to get an iterator for log entries: Logreader application only supports "file" log_type +occ app:disable logreader +# added for nextcloud 28 (1.0.8) +# end