RUN sed-i's/32,0,6,1/32,0,6,6/'${BASE_DIR}/version.php
RUN sed-i's/32,0,6,1/32,0,6,8/'${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"]
@@ -142,8 +142,8 @@ RUN sed -i 's/ in Nextcloud/ /' ${BASE_DIR}/custom_apps/integration_google/js/in
RUN sed-i's/Nextcloud administrator/administrator/'${BASE_DIR}/custom_apps/integration_google/js/integration_google-personalSettings.mjs
# Fix the navbar entries
RUN sed-i's/this.appLimit=e/this.appLimit=this.appList.length/'${BASE_DIR}/dist/core-main.js
# Fix the navbar entries - Not needed in NC 30 & onward
#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/settings/lib/Settings/Personal/PersonalInfo.php
@@ -155,7 +155,7 @@ RUN sed -i "s/\['total'\]/\['quota'\]/" ${BASE_DIR}/apps/provisioning_api/lib/Co
@@ -193,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-hrGoV45R.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
@@ -206,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
@@ -222,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