0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-14 18:35:08 +01:00

Update docker-entrypoint.sh

Fix Broken Redis session handler with unix socket #730
This commit is contained in:
epma01 2019-05-01 15:31:50 +02:00 committed by GitHub
parent e8607eb731
commit b70c25b79e
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'
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_HOST_PORT:=6379}\""
if [ "${REDIS_HOST_PORT:-0}" -eq 0 ]; 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