From 17e002e929e5372ee90b37bf10146964bb2d89c2 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 21 Jun 2024 10:52:47 +0200 Subject: [PATCH] nextcloud: properly add REDIS_DB_INDEX Signed-off-by: Simon L. --- Containers/nextcloud/config/redis.config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Containers/nextcloud/config/redis.config.php b/Containers/nextcloud/config/redis.config.php index e51b3022..4c541471 100644 --- a/Containers/nextcloud/config/redis.config.php +++ b/Containers/nextcloud/config/redis.config.php @@ -6,7 +6,6 @@ if (getenv('REDIS_HOST')) { 'redis' => array( 'host' => getenv('REDIS_HOST'), 'password' => (string) getenv('REDIS_HOST_PASSWORD'), - // 'dbindex' => (int) getenv('REDIS_DB_INDEX'), ), ); @@ -15,4 +14,8 @@ if (getenv('REDIS_HOST')) { } elseif (getenv('REDIS_HOST')[0] != '/') { $CONFIG['redis']['port'] = 6379; } + + if (getenv('REDIS_DB_INDEX') !== false) { + $CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DB_INDEX'); + } }