Fix unary operator expected (Bug 45985) (#270)

This commit is contained in:
Semyon Bezrukov 2020-07-30 11:54:46 +03:00 committed by GitHub
parent 0d974b9f2a
commit c47a310683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -483,15 +483,17 @@ if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then
rm -rf /var/run/rabbitmq rm -rf /var/run/rabbitmq
fi fi
if [ ${REDIS_ENABLED} = "true" ]; then
if [ ${REDIS_SERVER_HOST} != "localhost" ]; then if [ ${REDIS_SERVER_HOST} != "localhost" ]; then
update_redis_settings update_redis_settings
elif [ ${REDIS_ENABLED} = "true" ]; then else
# change rights for redis directory # change rights for redis directory
chown -R redis:redis ${REDIS_DATA} chown -R redis:redis ${REDIS_DATA}
chmod -R 750 ${REDIS_DATA} chmod -R 750 ${REDIS_DATA}
LOCAL_SERVICES+=("redis-server") LOCAL_SERVICES+=("redis-server")
fi fi
fi
else else
# no need to update settings just wait for remote data # no need to update settings just wait for remote data
waiting_for_datacontainer waiting_for_datacontainer