From 109b454e48f7d8400733542c8a0ec37af9f4f482 Mon Sep 17 00:00:00 2001 From: Mathias Koehrer Date: Wed, 20 Aug 2025 23:59:16 +0200 Subject: [PATCH] feat: allow updater to extend .user.ini on update When running nextcloud with a web hoster it might be necessary to extend .user.ini after each update (e.g. adding memory_limit). To automate this step, an additional config entry may be provided in config.php that specifies the lines to be added to .user.ini. If the config option 'user_ini_additional_lines' exists, the provided value (string or array of strings) will be added to .user.ini. Signed-off-by: Mathias Koehrer Signed-off-by: skjnldsv --- config/config.sample.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/config.sample.php b/config/config.sample.php index be6e9343ed74f..070fa3e75b34f 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -2460,6 +2460,14 @@ */ 'upgrade.cli-upgrade-link' => '', +/** + * Additional line(s) (string or array of strings) + * that will be added to .user.ini on each update by the updater. + * + * Defaults to ``''`` (empty string) + */ +'user_ini_additional_lines' => '', + /** * Customize the server logs documentation link for exception handling. */