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"