From 7796eb23f951bcfa73c710031509aeddf8270e65 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 6 May 2022 11:14:43 +0200 Subject: [PATCH] if a private CA is given, change Docker entrypoint to patch system CA-file into php.ini the system CA seems not used by default, no idea why ... --- doc/docker/fpm/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/docker/fpm/entrypoint.sh b/doc/docker/fpm/entrypoint.sh index 93e81fc7a4..d8ad42aaf1 100755 --- a/doc/docker/fpm/entrypoint.sh +++ b/doc/docker/fpm/entrypoint.sh @@ -40,8 +40,10 @@ test -f /var/lib/egroupware/header.inc.php && chmod 600 /var/lib/egroupware/header.inc.php # add private CA so egroupware can validate your certificate to talk to Collabora or Rocket.Chat -test -f /usr/local/share/ca-certificates/private-ca.crt && +test -f /usr/local/share/ca-certificates/private-ca.crt && { update-ca-certificates + sed 's#;\?openssl.cafile.*#openssl.cafile = /etc/ssl/certs/ca-certificates.crt#g' -i /etc/php/$PHP_VERSION/fpm/php.ini +} # write install-log in /var/lib/egroupware (only readable by root!) LOG=/var/lib/egroupware/egroupware-docker-install.log