From 819095d5e935449428ca9a58a33054857c062c36 Mon Sep 17 00:00:00 2001 From: tobias ollive Date: Tue, 8 Nov 2022 16:39:06 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'compile=5Fonly=5Fo?= =?UTF-8?q?ffice'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile_only_office.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/compile_only_office.md b/compile_only_office.md index a55c3b9..749c374 100644 --- a/compile_only_office.md +++ b/compile_only_office.md @@ -105,8 +105,7 @@ Les options deviennent accessible via les variable d'environement :  - `FORCESAVE_INTERVAL` - `FORCESAVE_STEP` -``` ---- a/run-document-server.sh +```diff +++ b/run-document-server.sh @@ -75,6 +75,10 @@ NGINX_CONFIG_PATH="/etc/nginx/nginx.conf" NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-1} @@ -119,17 +118,19 @@ Les options deviennent accessible via les variable d'environement :  JWT_ENABLED=${JWT_ENABLED:-true} # validate user's vars before usinig in json -@@ -328,6 +332,10 @@ update_ds_settings(){ +@@ -328,6 +332,11 @@ update_ds_settings(){ ${JSON} -I -e "this.services.CoAuthoring.token.inbox.inBody = ${JWT_IN_BODY}" ${JSON} -I -e "this.services.CoAuthoring.token.outbox.inBody = ${JWT_IN_BODY}" -+ ${JSON} -I -e "this.services.CoAuthoring.autoAssembly.enable = ${FORCESAVE_ENABLE}'" ++ ${JSON} -I -e "if(this.services.CoAuthoring.autoAssembly===undefined)this.services.CoAuthoring.autoAssembly={};" ++ ${JSON} -I -e "this.services.CoAuthoring.autoAssembly.enable = ${FORCESAVE_ENABLE}" + ${JSON} -I -e "this.services.CoAuthoring.autoAssembly.interval = '${FORCESAVE_INTERVAL}'" + ${JSON} -I -e "this.services.CoAuthoring.autoAssembly.step = '${FORCESAVE_STEP}'" + if [ -f "${ONLYOFFICE_EXAMPLE_CONFIG}" ]; then ${JSON_EXAMPLE} -I -e "this.server.token.enable = ${JWT_ENABLED}" ${JSON_EXAMPLE} -I -e "this.server.token.secret = '${JWT_SECRET}'" + ``` - build le paquet \ No newline at end of file