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:
parent
e8607eb731
commit
b70c25b79e
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'
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue