Fix sed typo, consolidate patching

Wrong ordering created a backup copy we don't need.
This commit is contained in:
Alexander Hofbauer
2020-10-03 18:22:21 +02:00
parent 3c264e164a
commit 1105492df0

View File

@@ -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