Mise à jour de 'compile_only_office'
parent
c1b881f265
commit
5e146f8a56
|
@ -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
|
Loading…
Reference in New Issue
Block a user