RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/002-login-without-domain.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/006-recovery-email-changes.patch
RUN patch -u${BASE_DIR}/apps/settings/lib/Settings/Personal/ServerDevNotice.php -i${TMP_PATCH_DIR}/007-remove-dev-notice.patch
RUN patch -u${BASE_DIR}/lib/private/Template/IconsCacher.php -i${TMP_PATCH_DIR}/008-icons-cacher-theme-svgs.patch
RUN patch -u${BASE_DIR}/core/Controller/SvgController.php -i${TMP_PATCH_DIR}/008-svg-controller-theme-svgs.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/009-help-links.patch
RUN patch -u${BASE_DIR}/lib/private/Updater.php -i${TMP_PATCH_DIR}/010-disable-app-store-upgrade.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/011-privacy-settings.patch
@@ -121,6 +126,7 @@ RUN patch -u ${BASE_DIR}/apps/settings/lib/Sections/Personal/Groupware.php -i ${
RUN patch -u${BASE_DIR}/apps/files/js/files.js -i${TMP_PATCH_DIR}/021-repeated-storage-dialog-fix.patch
RUN cd${BASE_DIR}&& patch -u${BASE_DIR}/3rdparty/sabre/vobject/lib/ITip/Broker.php -i${TMP_PATCH_DIR}/022-significantchange.patch
RUN patch -u${BASE_DIR}/apps/dav/lib/CalDAV/Reminder/ReminderService.php -i${TMP_PATCH_DIR}/024-reminder-service-handle-exception.patch
RUN patch -u${BASE_DIR}/apps/theming/lib/Themes/CommonThemeTrait.php -i${TMP_PATCH_DIR}/026-primary-color-fix.patch
RUN rm-rf${TMP_PATCH_DIR}
@@ -140,8 +146,6 @@ RUN curl -fsSL -o user_backend_sql_raw.tar.gz \
# Set default class of hidden to settings-hint
RUN sed-i's/settings-hint/settings-hint hidden/'${BASE_DIR}/apps/settings/templates/settings/personal/security/twofactor.php
# change notifications icon src
RUN sed-i's/(0,Ud.imagePath)("notifications",e)/"\/themes\/"+OC.theme.folder+"\/apps\/notifications\/img\/"+e+".svg"/'${BASE_DIR}/apps/notifications/js/notifications-main.js
RUN sed-i's/ in Nextcloud/ /'${BASE_DIR}/custom_apps/integration_google/js/integration_google-personalSettings.js
RUN sed-i's/Nextcloud administrator/administrator/'${BASE_DIR}/custom_apps/integration_google/js/integration_google-personalSettings.js
@@ -149,23 +153,26 @@ RUN sed -i 's/Nextcloud administrator/administrator/' ${BASE_DIR}/custom_apps/in
#replace error class in schedule response error file to fix error color
RUN sed-i's/update/error/g'${BASE_DIR}/apps/dav/templates/schedule-response-error.php
# Fix the navbar entries
RUN sed-i's/this.appLimit=e/this.appLimit=this.appList.length/'${BASE_DIR}/dist/core-main.js
Fromselfhostasecloud
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="24.0.4"
ARG LDAP_WRITE_SUPPORT_VERSION="1.6.0"
ARG OIDC_LOGIN_VERSION="2.4.0"
ARG THEME_VERSION="25.0.6"
ARG LDAP_WRITE_SUPPORT_VERSION="1.7.0"
ARG OIDC_LOGIN_VERSION="2.5.1"
# Patches
COPY patches/ ${TMP_PATCH_DIR}/
RUN patch -u${BASE_DIR}/core/templates/layout.user.php -i${TMP_PATCH_DIR}/003-contact-search-removal.patch
RUN patch -u${BASE_DIR}/core/Controller/ContactsMenuController.php -i${TMP_PATCH_DIR}/004-contact-search-controller-removal.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-core.patch
RUN cd${BASE_DIR}/custom_apps && patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-custom-app.patch
RUN patch -u${BASE_DIR}/core/templates/layout.guest.php -i${TMP_PATCH_DIR}/016-login-screen.patch
RUN patch -u${BASE_DIR}/lib/private/Notification/Manager.php -i${TMP_PATCH_DIR}/020-fairuse-notification-fix.patch
RUN cd${BASE_DIR}&& patch -u${BASE_DIR}/apps/user_ldap/lib/User_LDAP.php -i${TMP_PATCH_DIR}/023-ldap-check-pwd-optimization.patch
RUN patch -u${BASE_DIR}/lib/private/User/Manager.php -i${TMP_PATCH_DIR}/025-optimize-get-by-email.patch
RUN patch -u${BASE_DIR}/apps/dav/lib/Connector/Sabre/Principal.php -i${TMP_PATCH_DIR}/027-displayname-user-leak-dav.patch
RUN rm-rf${TMP_PATCH_DIR}
RUN curl -fsSL-o ldap_write_support.tar.gz \
@@ -182,13 +189,15 @@ RUN curl -fsSL -o oidc_login.tar.gz \
RUN sed-i's/https:\/\/nextcloud.com\/signup\//https:\/\/e\.foundation\/<?php p(\$_\[\x27language\x27\]); ?>\/e-email-invite\//'${BASE_DIR}/core/templates/layout.public.php
# show reset pwd page with a query param
RUN cd${BASE_DIR}/dist &&sed-i's/resetPassword:!1/resetPassword:!1||Z.showResetPassword==="1"/' core-login.js
# RUN cd ${BASE_DIR}/dist && sed -i 's/resetPassword:!1/resetPassword:!1||Z.showResetPassword==="1"/' core-login.js
# hide oidc login button
RUN sed-i's/$context->registerAlternativeLogin(OIDCLoginOption::class);/\/\/$context->registerAlternativeLogin(OIDCLoginOption::class);/'${BASE_DIR}/custom_apps/oidc_login/lib/AppInfo/Application.php
# change notifications icon src
RUN sed-i's/(0,zd.imagePath)("notifications",e)/"\/themes\/"+OC.theme.folder+"\/apps\/notifications\/img\/"+e+".svg"/'${BASE_DIR}/apps/notifications/js/notifications-main.js
# add attr about how many notifications to notif icon
RUN sed-i's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==e.notifications.length,/'${BASE_DIR}/apps/notifications/js/notifications-main.js
# Add data-object-type to notification
RUN sed-i's/"data-id":e.notificationId,/"data-id":e.notificationId,"data-object-type":e.objectType,/'${BASE_DIR}/apps/notifications/js/notifications-main.js
# autocomplete leak tweak apps frontend with sed, disable group suggestion
@@ -202,6 +211,7 @@ RUN sed -i 's/$this->header, \[$this->themingDefaults->getColorPrimary()/$this->
# Remove changeAvatar in changeUserHook of ldap_write_support as it throws errors
RUN sed-i's/$this->changeAvatar/\/\/ $this->changeAvatar/'${BASE_DIR}/custom_apps/ldap_write_support/lib/LDAPUserManager.php
# Remove 'fix broken values of calendar objects' repair step
RUN sed-i'/<step>OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue<\/step>/d'${BASE_DIR}/apps/dav/appinfo/info.xml