This commit is contained in:
charnesp 2023-01-06 08:35:45 +09:00 committed by GitHub
commit 6cbfe18fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,6 +78,9 @@ NGINX_WORKER_PROCESSES=${NGINX_WORKER_PROCESSES:-1}
JWT_ENABLED=${JWT_ENABLED:-true} JWT_ENABLED=${JWT_ENABLED:-true}
AUTO_ASSEMBLY_ENABLED=${AUTO_ASSEMBLY_ENABLED:-false}
AUTO_ASSEMBLY_INTERVAL=${AUTO_ASSEMBLY_INTERVAL:-20m}
# validate user's vars before usinig in json # validate user's vars before usinig in json
if [ "${JWT_ENABLED}" == "true" ]; then if [ "${JWT_ENABLED}" == "true" ]; then
JWT_ENABLED="true" JWT_ENABLED="true"
@ -344,6 +347,12 @@ update_ds_settings(){
${JSON} -I -e "if(this.wopi===undefined)this.wopi={}" ${JSON} -I -e "if(this.wopi===undefined)this.wopi={}"
${JSON} -I -e "this.wopi.enable = true" ${JSON} -I -e "this.wopi.enable = true"
fi fi
if [ "${AUTO_ASSEMBLY_ENABLED}" == "true" ]; then
${JSON} -I -e "if(this.services.CoAuthoring.autoAssembly===undefined)this.services.CoAuthoring.autoAssembly={};"
${JSON} -I -e "this.services.CoAuthoring.autoAssembly.enable = true"
${JSON} -I -e "this.services.CoAuthoring.autoAssembly.interval = '${AUTO_ASSEMBLY_INTERVAL}'"
fi
} }
create_postgresql_cluster(){ create_postgresql_cluster(){