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

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

removed OIDC

parent a93ce414
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="28.0.1"
ARG LDAP_WRITE_SUPPORT_VERSION="1.10.0"
ARG OIDC_LOGIN_VERSION="3.0.2"
#ARG OIDC_LOGIN_VERSION="3.0.2"
ARG IS_SELFHOST=false

RUN curl -fsSL -o ldap_write_support.tar.gz \
@@ -215,10 +215,10 @@ RUN curl -fsSL -o ldap_write_support.tar.gz \
  tar -xf ldap_write_support.tar.gz -C ${BASE_DIR}/custom_apps && \
  rm ldap_write_support.tar.gz

RUN curl -fsSL -o oidc_login.tar.gz \
  "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v${OIDC_LOGIN_VERSION}/oidc_login.tar.gz" && \
  tar -xf oidc_login.tar.gz -C ${BASE_DIR}/custom_apps && \
  rm oidc_login.tar.gz
# RUN curl -fsSL -o oidc_login.tar.gz \
#  "https://github.com/pulsejet/nextcloud-oidc-login/releases/download/v${OIDC_LOGIN_VERSION}/oidc_login.tar.gz" && \
#  tar -xf oidc_login.tar.gz -C ${BASE_DIR}/custom_apps && \
#  rm oidc_login.tar.gz

# Patches
COPY patches/ ${TMP_PATCH_DIR}/
@@ -244,7 +244,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

# hide oidc login button
RUN sed -i 's/$context->registerAlternativeLogin(OIDCLoginOption::class);/\/\/$context->registerAlternativeLogin(OIDCLoginOption::class);/' ${BASE_DIR}/custom_apps/oidc_login/lib/AppInfo/Application.php
#RUN sed -i 's/$context->registerAlternativeLogin(OIDCLoginOption::class);/\/\/$context->registerAlternativeLogin(OIDCLoginOption::class);/' ${BASE_DIR}/custom_apps/oidc_login/lib/AppInfo/Application.php

# add attr about how many notifications to notif icon
RUN sed -i 's/attrs:{id:"notifications",/attrs:{id:"notifications","data-has-notifications":0!==t.notifications.length,/' ${BASE_DIR}/apps/notifications/js/notifications-node_modules_moment_locale_sync_recursive_-src_NotificationsApp_vue-data_image_svg_xml_base64-ab95a3.js