From 7277e94f4ccfc3feb4049cc697f650ba4948f46e Mon Sep 17 00:00:00 2001 From: Akhil Date: Mon, 12 Jun 2023 17:52:16 +0530 Subject: [PATCH 1/2] Add seds to change total_space to quota --- Dockerfile | 4 ++++ patches/028-template-quota-value-fix.patch | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 patches/028-template-quota-value-fix.patch diff --git a/Dockerfile b/Dockerfile index 172989fe..004d929e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -162,6 +162,10 @@ RUN sed -i 's/update/error/g' ${BASE_DIR}/apps/dav/templates/schedule-response-e # Fix the navbar entries RUN sed -i 's/this.appLimit=e/this.appLimit=this.appList.length/' ${BASE_DIR}/dist/core-main.js +# Fix total quota value for users in settings and files +RUN sed -i "s/'total'/'quota'/" ${BASE_DIR}/apps/files/lib/Controller/ViewController.php +RUN sed -i "s/'total'/'quota'/" ${BASE_DIR}/apps/settings/lib/Settings/Personal/PersonalInfo.php + From selfhost as ecloud ARG BASE_DIR="/usr/src/nextcloud" ARG TMP_PATCH_DIR="/tmp/build_patches" diff --git a/patches/028-template-quota-value-fix.patch b/patches/028-template-quota-value-fix.patch new file mode 100644 index 00000000..5b44ce96 --- /dev/null +++ b/patches/028-template-quota-value-fix.patch @@ -0,0 +1,11 @@ +--- appnavigation.php 2023-06-12 17:12:24.538688146 +0530 ++++ appnavigation-new.php 2023-06-12 17:13:38.564123032 +0530 +@@ -19,7 +19,7 @@ +
  • + +-

    t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?>

    ++

    t('%1$s of %2$s used', [$_['usage'], $_['quota']])); ?>

    +
    + +
    -- GitLab From a8f03dbe53ecf00bb3a0d8f2d21e736230617b1f Mon Sep 17 00:00:00 2001 From: Akhil Date: Mon, 12 Jun 2023 17:56:40 +0530 Subject: [PATCH 2/2] Remove extraneous patch --- patches/028-template-quota-value-fix.patch | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 patches/028-template-quota-value-fix.patch diff --git a/patches/028-template-quota-value-fix.patch b/patches/028-template-quota-value-fix.patch deleted file mode 100644 index 5b44ce96..00000000 --- a/patches/028-template-quota-value-fix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- appnavigation.php 2023-06-12 17:12:24.538688146 +0530 -+++ appnavigation-new.php 2023-06-12 17:13:38.564123032 +0530 -@@ -19,7 +19,7 @@ -
  • - --

    t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?>

    -+

    t('%1$s of %2$s used', [$_['usage'], $_['quota']])); ?>

    -
    - -
    -- GitLab