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>
This commit is contained in:
Abhay Kumar 2026-01-05 22:51:35 +05:30 committed by GitHub
parent e89fca93eb
commit 7e20e2db93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"