0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-19 18:36:09 +02:00

Update docker-entrypoint.sh

Broken Redis session handler with unix socket, can't login (#730)
This commit is contained in:
epma01 2019-05-01 21:14:15 +02:00 committed by GitHub
parent a2d0c57921
commit dfe84fcd62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
echo "Configuring Redis as session handler"
{
echo 'session.save_handler = redis'
if [[ ${REDIS_HOST:0:1} == "/" ]] ; then
echo "session.save_path = \"unix://${REDIS_HOST}?persistent=1&weight=1&database=0\""
else
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}\""
fi
} > /usr/local/etc/php/conf.d/redis-session.ini
fi