From 1105492df04c27b03745f02e54feeee7120d3e65 Mon Sep 17 00:00:00 2001 From: Alexander Hofbauer Date: Sat, 3 Oct 2020 18:22:21 +0200 Subject: [PATCH] Fix sed typo, consolidate patching Wrong ordering created a backup copy we don't need. --- Dockerfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index d1714fc..ea277f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,16 +3,10 @@ FROM onlyoffice/documentserver:$oo_version ARG oo_version=5.6.5.3 -RUN sed -is \ - 's/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g' \ - /var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/mobile/app.js - -RUN sed -is \ - 's/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g' \ - /var/www/onlyoffice/documentserver/web-apps/apps/presentationeditor/mobile/app.js - -RUN sed -is \ +RUN sed -si \ 's/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g' \ + /var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/mobile/app.js \ + /var/www/onlyoffice/documentserver/web-apps/apps/presentationeditor/mobile/app.js \ /var/www/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/app.js