RUN sed-i's/31,0,10,2/31,0,10,11/'${BASE_DIR}/version.php
RUN sed-i's/32,0,6,1/32,0,6,10/'${BASE_DIR}/version.php
COPY custom_entrypoint.sh /
RUN chmod +x /custom_entrypoint.sh
RUN mkdir-p /var/www/skeleton/Documents &&mkdir-p /var/www/skeleton/Images
@@ -74,7 +74,7 @@ RUN apt-get -y remove unzip
RUN sed-i"s/\$systemConfig->setValue('theme', '');/\$systemConfig->setValue('theme', 'eCloud');/g"${BASE_DIR}/lib/base.php
# Disable editor feature of media viewer
RUN sed-i's/canEdit(){return!this.isMobile\&\&L()/canEdit(){return!this.isMobile\&\&false\&\&L()/'${BASE_DIR}/apps/viewer/js/viewer-main.mjs
RUN sed-i's/canEdit(){return!this.isMobile\&\&this.canDownload/canEdit(){return!this.isMobile\&\&false\&\&this.canDownload/'${BASE_DIR}/apps/viewer/js/viewer-main.mjs
ENTRYPOINT ["/custom_entrypoint.sh"]
@@ -107,6 +107,7 @@ RUN patch -u ${BASE_DIR}/lib/private/Template/JSResourceLocator.php -i ${TMP_PAT
RUN patch -u${BASE_DIR}/lib/private/L10N/Factory.php -i${TMP_PATCH_DIR}/032-select-lang-from-session.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/038-appdata-folder-based-on-config.patch
#RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/038-appdata-folder-based-on-config.patch
RUN rm-rf${TMP_PATCH_DIR}
@@ -192,7 +193,7 @@ RUN sed -i 's/$this->getAvatarImage($user)/null/' ${BASE_DIR}/apps/dav/lib/CardD
# 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!==u.notifications.length,/'${BASE_DIR}/apps/notifications/js/NotificationsApp-CL5l4zBd.chunk.mjs
RUN sed-i's/key:0,id:"notifications",/key:0,id:"notifications","data-has-notifications":0!==i.notifications.length,/'${BASE_DIR}/apps/notifications/js/NotificationsApp-hrGoV45R.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
@@ -205,7 +206,9 @@ RUN cd ${BASE_DIR}/custom_apps/memories/js && sed -i 's/Memories Settings/Galler
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
# Not needed for NC-32
#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
@@ -221,7 +224,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:r\.config\.sound_talk}/staticClass:"notification_talk",attrs:{checked:r\.config\.sound_talk}/g'${BASE_DIR}/apps/notifications/js/notifications-settings.mjs
RUN sed-i's/c\.config\.sound_talk=p),l\.updateSettings]/c\.config\.sound_talk=p),l\.updateSettings],class:"notification_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