RUN sed-i's/22,2,6,2/22,2,6,5/'${BASE_DIR}/version.php
RUN sed-i's/22,2,7,1/22,2,7,3/'${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
# Install unzip for unzipping artifacts
RUN apt-get update && apt-get install unzip
@@ -96,7 +99,7 @@ RUN sed -i "s/\$systemConfig->setValue('theme', '');/\$systemConfig->setValue('t
# Patches
COPY patches/ ${TMP_PATCH_DIR}/
RUN patch -u${BASE_DIR}/core/Controller/LoginController.php -i${TMP_PATCH_DIR}/002-login-without-domain.patch
RUN cd${BASE_DIR}&& patch -p0 <${TMP_PATCH_DIR}/002-login-without-domain.patch
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
@@ -126,8 +129,6 @@ RUN sed -i 's/recommendations,spreed,mail,calendar/calendar,tasks,notes/' ${BASE
# Remove colored background from email template logo
RUN sed-i's/$this->header, \[$this->themingDefaults->getColorPrimary()/$this->header, \["none"/'${BASE_DIR}/lib/private/Mail/EMailTemplate.php
# fix min version of google data migration app
RUN sed-i"s/min-version=\"22\"/min-version=\"21\"/"${BASE_DIR}/custom_apps/integration_google/appinfo/info.xml
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
@@ -142,112 +143,5 @@ RUN curl -fsSL -o eCloud-theme.tar.gz \
# Replace "Get your own free account" NC link with /e/ Account link in public pages
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
# Use php 8 image
FROM php:8.0.12-fpm-bullseye
RUN mkdir-p /var/www/skeleton/Documents &&mkdir-p /var/www/skeleton/Images
# Copy all the required files from the nextcloud stage