# tar -xf user_backend_sql_raw.tar.gz -C ${BASE_DIR}/custom_apps/ && \
# rm user_backend_sql_raw.tar.gz;
# Selfhost theme
RUN if["$IS_SELFHOST"=true];then\
@@ -203,17 +203,11 @@ RUN sed -i "s/\['total'\]/\['quota'\]/" ${BASE_DIR}/apps/provisioning_api/lib/Co
# Fix API call in files script
RUN sed-i"s/ajax\/getstoragestats/api\/v1\/stats/g"${BASE_DIR}/apps/files/js/files.js
#fix for who can access data- its needed with 011-privacy-settings.patch
RUN sed-i's|Your home storage is encrypted using {linkopen}server-side-encryption ↗{linkclose} with a master key\. It means that administrators can access your files, but not read their content\.|Like in most cloud services, a reduced number of administrators can see your files and all the information in the database as they need to make backups, perform upgrades, reset passwords, etc.<br>{linkopen1}Learn more about this topic here. ↗{linkclose1}|g'${BASE_DIR}/apps/privacy/js/privacy-main.js
RUN sed-i's/t((0,n\.Iu)("privacy","Your files on external storages may be encrypted using {linkopen}server-side-encryption ↗{linkclose} with a master key based on their configuration\."))/t("{linkopen}"+(0,n\.Iu)("privacy","To protect your data, we have implemented server-side-encryption on our servers which hides by default the content of your files and notes even to these administrators")+"↗{linkclose}")/g'${BASE_DIR}/apps/privacy/js/privacy-main.js
RUN sed-i's|.replace("{linkclose}","</a>")|.replace("{linkclose}","</a>").replace("{linkopen1}",'"'"'<a href="https://doc.e.foundation/support-topics/services#can-the-ecloud-admin-access-my-data" target="_blank" rel="noreferrer noopener" class="encryption__link">'"'"').replace("{linkclose1}","</a>")|g'${BASE_DIR}/apps/privacy/js/privacy-main.js
Fromselfhostasecloud
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="28.0.2"
ARG LDAP_WRITE_SUPPORT_VERSION="1.11.0"
ARG THEME_VERSION="30.0.0"
ARG LDAP_WRITE_SUPPORT_VERSION="1.12.1"
ARG IS_SELFHOST=false
RUN curl -fsSL-o ldap_write_support.tar.gz \
@@ -242,11 +236,14 @@ RUN rm -rf ${TMP_PATCH_DIR}
# Remove user avatar generation for system addressbook card
RUN sed-i's/$this->getAvatarImage($user)/null/'${BASE_DIR}/apps/dav/lib/CardDAV/Converter.php
# redirect user to sso login on successful resetting password
#RUN cd ${BASE_DIR}/dist && sed -i "s|window\.location\.href=(0,g\.Jv)(\"login\")|window.location.href = '/'|g" core-login.js
# 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
# add attr about how many notifications to notif icon
RUN sed-i's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==t.notifications.length,/'${BASE_DIR}/apps/notifications/js/notifications-src_NotificationsApp_vue.js
RUN sed-i's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==u.notifications.length,/'${BASE_DIR}/apps/notifications/js/NotificationsApp-DS2Cdf60.chunk.mjs
# Rename Memories to Gallery
RUN sed-i's/<name>Memories<\/name>/<name>Gallery<\/name>/g'${BASE_DIR}/custom_apps/memories/appinfo/info.xml
@@ -255,14 +252,14 @@ RUN cd ${BASE_DIR}/custom_apps/memories/js && sed -i 's/Memories Settings/Galler
# autocomplete leak tweak apps frontend with sed, disable group suggestion
RUN cd${BASE_DIR}/custom_apps/contacts &&sed-i's/"GROUP","INDIVIDUAL"/"INDIVIDUAL"/g' js/contacts-main.js
RUN cd${BASE_DIR}/custom_apps/contacts &&sed-i's/\["INDIVIDUAL"\]/\[\]/g' js/contacts-main.mjs
RUN cd${BASE_DIR}/custom_apps/calendar &&sed-i's/"GROUP","INDIVIDUAL"/"INDIVIDUAL"/g' js/calendar-main.js
RUN cd${BASE_DIR}/custom_apps/calendar &&sed-i's/{name:\[a,"displayname"\]},//' js/calendar-main.js
RUN cd${BASE_DIR}/custom_apps/notes &&sed-i's/<step>OCA\\Notes\\Migration\\EditorHint<\/step>//g' appinfo/info.xml
RUN cd${BASE_DIR}/apps/theming &&sed-i's/<step>OCA\\Theming\\Migration\\MigrateUserConfig<\/step>//g' appinfo/info.xml
# sharing search by email
RUN cd${BASE_DIR}/custom_apps/contacts &&sed-i's/kM.principalPropertySearchByDisplayname(t);/kM.principalPropertySearch(\[{name:\["http:\/\/sabredav.org\/ns","email-address"\]\}],t,"anyof");/g' js/contacts-main.js
#RUN cd ${BASE_DIR}/custom_apps/contacts && sed -i 's/kM.principalPropertySearchByDisplayname(t);/kM.principalPropertySearch(\[{name:\["http:\/\/sabredav.org\/ns","email-address"\]\}],t,"anyof");/g' js/contacts-main.js
# Remove colored background from email template logo
RUN sed-i's/$this->header, \[$this->themingDefaults->getDefaultColorPrimary()/$this->header, \["none"/'${BASE_DIR}/lib/private/Mail/EMailTemplate.php
@@ -275,7 +272,7 @@ RUN sed -i 's/$this->changeAvatar/\/\/ $this->changeAvatar/' ${BASE_DIR}/custom_
RUN sed-i'/<step>OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue<\/step>/d'${BASE_DIR}/apps/dav/appinfo/info.xml
# Hide `Play sound when a call started (requires Nextcloud Talk)` checkbox from notification setting
RUN sed-i's/attrs:{checked:e\.config\.sound_talk}/staticClass:"notification_talk",attrs:{checked:e\.config\.sound_talk}/g'${BASE_DIR}/apps/notifications/js/notifications-settings.js
RUN sed-i's/attrs:{checked:r\.config\.sound_talk}/staticClass:"notification_talk",attrs:{checked:r\.config\.sound_talk}/g'${BASE_DIR}/apps/notifications/js/notifications-settings.mjs
# Hide `Navigation bar settings` from theming
RUN sed-i's/{attrs:{name:t.t("theming","Navigation bar settings")}}/{staticClass:"navigation-bar-settings",attrs:{name:t.t("theming","Navigation bar settings")}}/g'${BASE_DIR}/dist/theming-personal-theming.js
@@ -308,5 +305,6 @@ RUN sed -i ':a;N;$!ba;s/t("NcActionButton",{on:{click:e.onToggleSharing},scopedS
# Add id to delete account settings section and hide it by default
RUN sed-i's/"NcSettingsSection",{attrs:{/"NcSettingsSection",{attrs:{id:"delete-account-settings-section",style:"visibility:hidden;",/'${BASE_DIR}/custom_apps/drop_account/js/drop_account-personal-settings.mjs
# Fix of https://github.com/nextcloud/server/commit/e727a3b00bd9b574279d25c006a0bc6b8fa4eec3 for availability setting
RUN sed-i's/n.data/await n.text()/'${BASE_DIR}/dist/dav-settings-personal-availability.js
No newline at end of file
# Hide personal settings of files_external
RUN sed-i"s/'externalstorages'/null/"${BASE_DIR}/apps/files_external/lib/Settings/Personal.php