From 7e20e2db9399f20eec3d3241392e2aaf042152b6 Mon Sep 17 00:00:00 2001 From: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com> Date: Mon, 5 Jan 2026 22:51:35 +0530 Subject: [PATCH] Enhance entrypoint.sh for PostgreSQL SSL configuration Add support for PostgreSQL SSL mode and CA options in entrypoint script. Signed-off-by: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com> --- 32/apache/entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/32/apache/entrypoint.sh b/32/apache/entrypoint.sh index e3b88f14..39b1a775 100755 --- a/32/apache/entrypoint.sh +++ b/32/apache/entrypoint.sh @@ -216,6 +216,13 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP file_env POSTGRES_DB file_env POSTGRES_PASSWORD file_env POSTGRES_USER + if [ -n "$POSTGRES_SSLMODE" ]; then + run_as 'php /var/www/html/occ config:system:set dbdriveroptions 1000 --value="'$POSTGRES_SSLMODE'" --type=string' + fi + + if [ -n "$POSTGRES_SSLCA" ]; then + run_as 'php /var/www/html/occ config:system:set dbdriveroptions 1012 --value="'$POSTGRES_SSLCA'" --type=string' + fi if [ -n "${SQLITE_DATABASE+x}" ]; then echo "Installing with SQLite database"