Add SSL options for PostgreSQL configuration

Signed-off-by: Abhay Kumar <163823435+its-abhaykumar@users.noreply.github.com>
This commit is contained in:
Abhay Kumar 2026-01-05 22:50:32 +05:30 committed by GitHub
parent 16bd3f492c
commit e89fca93eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,7 +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"
# shellcheck disable=SC2016