From c47a31068330ae67b352e539223327cff99ccd8a Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Thu, 30 Jul 2020 11:54:46 +0300 Subject: [PATCH] Fix unary operator expected (Bug 45985) (#270) --- run-document-server.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/run-document-server.sh b/run-document-server.sh index 86e8c09..9f57747 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -483,14 +483,16 @@ if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then rm -rf /var/run/rabbitmq fi - if [ ${REDIS_SERVER_HOST} != "localhost" ]; then - update_redis_settings - 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 + if [ ${REDIS_SERVER_HOST} != "localhost" ]; then + update_redis_settings + else + # change rights for redis directory + chown -R redis:redis ${REDIS_DATA} + chmod -R 750 ${REDIS_DATA} - LOCAL_SERVICES+=("redis-server") + LOCAL_SERVICES+=("redis-server") + fi fi else # no need to update settings just wait for remote data