From 7969d08e4f52c0487ab529cdc9fde1852ab760cf Mon Sep 17 00:00:00 2001 From: szaimen Date: Tue, 7 Dec 2021 17:14:56 +0100 Subject: [PATCH 1/2] increase the upload limit size to 10G Signed-off-by: szaimen --- Containers/nextcloud/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/nextcloud/Dockerfile b/Containers/nextcloud/Dockerfile index 4f932a77..1b6c95f0 100644 --- a/Containers/nextcloud/Dockerfile +++ b/Containers/nextcloud/Dockerfile @@ -14,7 +14,7 @@ RUN set -ex; \ # install the PHP extensions we need # see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html ENV PHP_MEMORY_LIMIT 512M -ENV PHP_UPLOAD_LIMIT 512M +ENV PHP_UPLOAD_LIMIT 10G RUN set -ex; \ \ savedAptMark="$(apt-mark showmanual)"; \ From 785257d798091f73e53c1841aa3336abaf142afa Mon Sep 17 00:00:00 2001 From: szaimen Date: Tue, 7 Dec 2021 17:19:17 +0100 Subject: [PATCH 2/2] remove the updatenotification app since we have our own system for that Signed-off-by: szaimen --- Containers/nextcloud/Dockerfile | 3 ++- Containers/nextcloud/entrypoint.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Containers/nextcloud/Dockerfile b/Containers/nextcloud/Dockerfile index 1b6c95f0..add895da 100644 --- a/Containers/nextcloud/Dockerfile +++ b/Containers/nextcloud/Dockerfile @@ -229,7 +229,8 @@ RUN chown www-data:root -R /usr/src && \ chown www-data:root -R /var/log/supervisord/ && \ chown www-data:root -R /var/run/supervisord/ && \ mkdir -p /var/log/nextcloud/ && \ - chown -R www-data:root /var/log/nextcloud/ + chown -R www-data:root /var/log/nextcloud/ && \ + rm -r /usr/src/nextcloud/apps/updatenotification COPY start.sh / COPY notify.sh / diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index 950d1929..17c96d23 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -166,13 +166,14 @@ if version_greater "$image_version" "$installed_version"; then # Apply other settings echo "Applying other settings..." php /var/www/html/occ config:system:set upgrade.disable-web --type=bool --value=true - php /var/www/html/occ config:app:set updatenotification notify_groups --value="[]" php /var/www/html/occ config:system:set mail_smtpmode --value="smtp" php /var/www/html/occ config:system:set trashbin_retention_obligation --value="auto, 30" php /var/www/html/occ config:system:set versions_retention_obligation --value="auto, 30" php /var/www/html/occ config:system:set activity_expire_days --value="30" php /var/www/html/occ config:system:set simpleSignUpLink.shown --type=bool --value=false php /var/www/html/occ config:system:set share_folder --value="/Shared" + # Not needed anymore with the removal of the updatenotification app: + # php /var/www/html/occ config:app:set updatenotification notify_groups --value="[]" #upgrade else