Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5f41266 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

Merge branch 'selfhost-25-0-8-fix' into 'main'

fix error

See merge request !190
parents 5e26748a 11ef28e3
Loading
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ ARG SNAPPY_THEME_VERSION="2.0.7"
ARG USER_MIGRATION_JOB_ID="608716"
ARG MEMORIES_VERSION="5.1.0"

RUN sed -i 's/25,0,8,2/25,0,8,16/' ${BASE_DIR}/version.php
RUN sed -i 's/25,0,8,2/25,0,8,19/' ${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
@@ -160,7 +160,7 @@ RUN curl -fsSL -o user_backend_sql_raw.tar.gz \
    rm user_backend_sql_raw.tar.gz;

# Selfhost theme
RUN if [ "${IS_SELFHOST}" === "true" ] ; then \
RUN if [ "$IS_SELFHOST" = true ]; then \
        curl -fsSL -o selfhost-theme-helper.tar.gz \
        "https://gitlab.e.foundation/e/infra/ecloud/nextcloud-apps/selfhost-theme-helper/-/archive/${SELFHOST_THEME_VERSION}/selfhost-theme-helper-${SELFHOST_THEME_VERSION}.tar.gz" && \
        tar -xf selfhost-theme-helper.tar.gz -C /tmp/ && \
@@ -266,6 +266,11 @@ RUN rm -rf ${BASE_DIR}/themes/eCloud && \
    chown -R www-data:www-data ${BASE_DIR}/themes/eCloud/ && \
    rm -rf eCloud-theme.tar.gz ${BASE_DIR}/themes/example/

# Remove Selfhost theme
RUN if [ "$IS_SELFHOST" = false ]; then \
        rm -rf ${BASE_DIR}/custom_apps/selfhost-theme-helper;\
    fi

# Seds to fix displayname save regression
RUN sed -i "s/'email' ||/'email'/" ${BASE_DIR}/apps/settings/js/federationsettingsview.js
RUN sed -i "s/field === 'displayname'//" ${BASE_DIR}/apps/settings/js/federationsettingsview.js