From b81d3462ba3b967654401cab89ebb1a32b26b3c9 Mon Sep 17 00:00:00 2001 From: Semen Bezrukov Date: Thu, 4 Jun 2020 13:59:40 +0300 Subject: [PATCH] Fix REDIS_ENABLED condition --- run-document-server.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/run-document-server.sh b/run-document-server.sh index fd90cb3..4a689bb 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -467,14 +467,12 @@ if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then if [ ${REDIS_SERVER_HOST} != "localhost" ]; then update_redis_settings - else + elif [ ${REDIS_ENABLED} = "true" ]; then # change rights for redis directory chown -R redis:redis ${REDIS_DATA} chmod -R 750 ${REDIS_DATA} - if [ ${REDIS_ENABLED} = "true" ]; then - LOCAL_SERVICES+=("redis-server") - fi + LOCAL_SERVICES+=("redis-server") fi else # no need to update settings just wait for remote data