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

Unverified Commit 326d163d authored by Akhil's avatar Akhil
Browse files

Add sed to disable edit feature

parent e484c4a6
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ ARG DASHBOARD_JOB_ID="570430"
ARG SNAPPY_VERSION="2.27.2"
ARG SNAPPY_THEME_VERSION="1.2.7"

RUN sed -i 's/25,0,6,1/25,0,6,1/' ${BASE_DIR}/version.php
RUN sed -i 's/25,0,6,1/25,0,6,2/' ${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
@@ -97,6 +97,9 @@ RUN apt-get -y remove unzip
# force eCloud theme not to be disabled even when there is an upgrade process launched
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/!this.isMobile/!this.isMobile\&\&false/' ${BASE_DIR}/apps/viewer/js/viewer-main.js

ENTRYPOINT ["/custom_entrypoint.sh"]
CMD ["php-fpm"]