From 5e146f8a569e3f2fd54da11113f31f2807c7468e Mon Sep 17 00:00:00 2001 From: tobias ollive Date: Tue, 8 Nov 2022 16:23:23 +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 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/compile_only_office.md b/compile_only_office.md index 6d44120..8fc8747 100644 --- a/compile_only_office.md +++ b/compile_only_office.md @@ -98,4 +98,33 @@ le paquet deb est disponible dans le répertoire `$HOME/onlyoffice/package-docum + apt-get clean && \ rm -rf /var/lib/apt/lists/* ``` +#### Ajout de l'option forcesave dans le fichier `run-document-server.sh` :  + +``` +--- a/run-document-server.sh ++++ b/run-document-server.sh +@@ -75,6 +75,10 @@ NGINX_CONFIG_PATH="/etc/nginx/nginx.conf" + NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-1} + NGINX_WORKER_CONNECTIONS=${NGINX_WORKER_CONNECTIONS:-$(ulimit -n)} + ++FORCESAVE_ENABLE=${FORCESAVE_ENABLE:-false} ++FORCESAVE_INTERVAL=${FORCESAVE_INTERVAL:-5m} ++FORCESAVE_STEP=${FORCESAVE_STEP:-1m} ++ + JWT_ENABLED=${JWT_ENABLED:-true} + + # validate user's vars before usinig in json +@@ -328,6 +332,10 @@ 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 "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