diff --git a/daemons/start-daemon.sh b/daemons/start-daemon.sh index 2679b93..0c0ab82 100755 --- a/daemons/start-daemon.sh +++ b/daemons/start-daemon.sh @@ -81,6 +81,12 @@ then done fi +if [ -d /etc/grid-security/certificates ]; then + echo 'Adding Grid CAs to the system trust.' + cp -v /etc/grid-security/certificates/*.pem /etc/pki/ca-trust/source/anchors/ + update-ca-trust extract +fi + echo "starting daemon with: $RUCIO_DAEMON $RUCIO_DAEMON_ARGS" echo "" diff --git a/server/docker-entrypoint.sh b/server/docker-entrypoint.sh index 16822fe..759591c 100755 --- a/server/docker-entrypoint.sh +++ b/server/docker-entrypoint.sh @@ -92,6 +92,12 @@ then done fi +if [ -d /etc/grid-security/certificates ]; then + echo 'Adding Grid CAs to the system trust.' + cp -v /etc/grid-security/certificates/*.pem /etc/pki/ca-trust/source/anchors/ + update-ca-trust extract +fi + pkill httpd || : sleep 2 exec httpd -D FOREGROUND \ No newline at end of file