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:
parent
a2d0c57921
commit
dfe84fcd62
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue