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

Commit 8c9d0d7d authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

conditonal selfhost theme helper

parent 749360bb
Loading
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="25.0.12"
ARG USER_BACKEND_RAW_SQL_VERSION="1.3.0"
ARG SELFHOST_THEME_VERSION="1.0.0"
ARG IS_SELFHOST=true

# Patches
COPY patches/ ${TMP_PATCH_DIR}/
@@ -159,12 +160,14 @@ RUN curl -fsSL -o user_backend_sql_raw.tar.gz \
    rm user_backend_sql_raw.tar.gz;

# Selfhost theme
RUN curl -fsSL -o selfhost-theme-helper.tar.gz \
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/ && \
        mv /tmp/selfhost-theme-helper-1.0.0/ ${BASE_DIR}/custom_apps/selfhost-theme-helper && \
        chown -R www-data:www-data ${BASE_DIR}/custom_apps/selfhost-theme-helper/ && \
    rm -f selfhost-theme-helper.tar.gz
        rm -f selfhost-theme-helper.tar.gz;\
    fi



@@ -191,6 +194,7 @@ ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="25.0.12"
ARG LDAP_WRITE_SUPPORT_VERSION="1.7.0"
ARG OIDC_LOGIN_VERSION="2.6.0"
ARG IS_SELFHOST=false

# Patches
COPY patches/ ${TMP_PATCH_DIR}/