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