2023-08-07 13:00:37 +02:00
|
|
|
# Makes sense for all European Biobanks
|
|
|
|
: ${ENABLE_ERIC:=true}
|
|
|
|
|
|
|
|
# Makes only sense for German Biobanks
|
|
|
|
: ${ENABLE_GBN:=false}
|
|
|
|
|
2024-03-15 09:35:49 +01:00
|
|
|
# Makes only sense for EHDS2 project
|
|
|
|
: ${ENABLE_EHDS2:=false}
|
|
|
|
|
2024-07-02 14:05:38 +02:00
|
|
|
FOCUS_RETRY_COUNT=128
|
2023-05-10 12:54:05 +02:00
|
|
|
PRIVATEKEYFILENAME=/etc/bridgehead/pki/${SITE_ID}.priv.pem
|
|
|
|
|
|
|
|
for module in $PROJECT/modules/*.sh
|
|
|
|
do
|
2023-05-19 13:53:03 +02:00
|
|
|
log DEBUG "sourcing $module"
|
2023-05-10 12:54:05 +02:00
|
|
|
source $module
|
|
|
|
done
|
2023-08-07 13:00:37 +02:00
|
|
|
|
|
|
|
SUPPORT_EMAIL=$ERIC_SUPPORT_EMAIL
|
2024-02-14 10:19:19 +01:00
|
|
|
BROKER_URL_FOR_PREREQ="https://ecdc-vm-ehds-test1.swedencentral.cloudapp.azure.com"
|
2023-08-07 13:00:37 +02:00
|
|
|
|
|
|
|
if [ -n "$GBN_SUPPORT_EMAIL" ]; then
|
|
|
|
SUPPORT_EMAIL=$GBN_SUPPORT_EMAIL
|
|
|
|
fi
|
|
|
|
|
2024-03-15 09:35:49 +01:00
|
|
|
if [ -n "$EHDS2_SUPPORT_EMAIL" ]; then
|
|
|
|
SUPPORT_EMAIL=$EHDS2_SUPPORT_EMAIL
|
|
|
|
fi
|
|
|
|
|
2023-08-07 13:00:37 +02:00
|
|
|
function do_enroll {
|
|
|
|
COUNT=0
|
|
|
|
if [ "$ENABLE_ERIC" == "true" ]; then
|
|
|
|
do_enroll_inner $ERIC_PROXY_ID $ERIC_SUPPORT_EMAIL
|
|
|
|
COUNT=$((COUNT+1))
|
|
|
|
fi
|
|
|
|
if [ "$ENABLE_GBN" == "true" ]; then
|
|
|
|
do_enroll_inner $GBN_PROXY_ID $GBN_SUPPORT_EMAIL
|
|
|
|
COUNT=$((COUNT+1))
|
|
|
|
fi
|
2024-03-15 09:35:49 +01:00
|
|
|
if [ "$ENABLE_EHDS2" == "true" ]; then
|
|
|
|
do_enroll_inner $EHDS2_PROXY_ID $EHDS2_SUPPORT_EMAIL
|
|
|
|
COUNT=$((COUNT+1))
|
|
|
|
fi
|
2023-08-07 13:00:37 +02:00
|
|
|
if [ $COUNT -ge 2 ]; then
|
|
|
|
echo
|
|
|
|
echo "You just received $COUNT certificate signing requests (CSR). Please send $COUNT e-mails, with 1 CSR each, to the respective e-mail address."
|
|
|
|
fi
|
2023-09-22 09:25:04 +02:00
|
|
|
}
|