From 9494e08e8f4b3a1808cf528265e997d9b9d7bae1 Mon Sep 17 00:00:00 2001 From: Danil Titarenko <77471369+danilapog@users.noreply.github.com> Date: Wed, 15 Jun 2022 10:30:18 +0300 Subject: [PATCH] Fix for redis correct work (#449) * Fix for redis correct work * Refactoring code * Refactoring code * Refactoring code * Refactor: refactoring code --- Dockerfile | 3 ++- run-document-server.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f1bf17..708b4a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,7 +78,8 @@ ARG PRODUCT_NAME=documentserver ARG PACKAGE_URL="http://download.onlyoffice.com/install/documentserver/linux/${COMPANY_NAME}-${PRODUCT_NAME}${PRODUCT_EDITION}_$TARGETARCH.deb" ENV COMPANY_NAME=$COMPANY_NAME \ - PRODUCT_NAME=$PRODUCT_NAME + PRODUCT_NAME=$PRODUCT_NAME \ + PRODUCT_EDITION=$PRODUCT_EDITION RUN wget -q -P /tmp "$PACKAGE_URL" && \ apt-get -y update && \ diff --git a/run-document-server.sh b/run-document-server.sh index 8011b54..c9747f8 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -83,7 +83,7 @@ WOPI_ENABLED=${WOPI_ENABLED:-false} GENERATE_FONTS=${GENERATE_FONTS:-true} -if [[ ${PRODUCT_NAME} == "documentserver" ]]; then +if [[ ${PRODUCT_NAME}${PRODUCT_EDITION} == "documentserver" ]]; then REDIS_ENABLED=false else REDIS_ENABLED=true