Fix REDIS_ENABLED condition

This commit is contained in:
Semen Bezrukov 2020-06-04 13:59:40 +03:00
parent bf814ca1b1
commit b81d3462ba

View file

@ -467,15 +467,13 @@ if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then
if [ ${REDIS_SERVER_HOST} != "localhost" ]; then if [ ${REDIS_SERVER_HOST} != "localhost" ]; then
update_redis_settings update_redis_settings
else elif [ ${REDIS_ENABLED} = "true" ]; then
# 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}
if [ ${REDIS_ENABLED} = "true" ]; then
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