Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion daemons/start-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ then
done
fi

if [ -d /etc/grid-security/certificates ]; then
# allow operators to disable updating the system trust store
UPDATE_SYSTEM_TRUST="${UPDATE_SYSTEM_TRUST:-1}"
if [[ "$UPDATE_SYSTEM_TRUST" == "1" && -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
else
echo "Skipping system trust update."
fi

echo "starting daemon with: $RUCIO_DAEMON $RUCIO_DAEMON_ARGS"
Expand Down
8 changes: 6 additions & 2 deletions server/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ then
done
fi

if [ -d /etc/grid-security/certificates ]; then
# allow operators to disable updating the system trust store
UPDATE_SYSTEM_TRUST="${UPDATE_SYSTEM_TRUST:-1}"
if [[ "$UPDATE_SYSTEM_TRUST" == "1" && -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
else
echo "Skipping system trust update."
fi

pkill httpd || :
sleep 2
exec httpd -D FOREGROUND
exec httpd -D FOREGROUND
6 changes: 5 additions & 1 deletion ui/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ then
done
fi

if [ -d /etc/grid-security/certificates ]; then
# allow operators to disable updating the system trust store
UPDATE_SYSTEM_TRUST="${UPDATE_SYSTEM_TRUST:-1}"
if [[ "$UPDATE_SYSTEM_TRUST" == "1" && -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
else
echo "Skipping system trust update."
fi


Expand Down