mirror of
https://github.com/samply/bridgehead.git
synced 2026-06-23 12:50:16 +02:00
Add general OVIS bridgehead project
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ checkOwner(){
|
||||
|
||||
printUsage() {
|
||||
echo "Usage: bridgehead start|stop|logs|docker-logs|is-running|update|check|install|uninstall|adduser|enroll PROJECTNAME"
|
||||
echo "PROJECTNAME should be one of ccp|bbmri|cce|itcc|kr|dhki|nngm"
|
||||
echo "PROJECTNAME should be one of ccp|bbmri|cce|pscc|itcc|kr|dhki|nngm|minimal|ovis"
|
||||
}
|
||||
|
||||
checkRequirements() {
|
||||
|
||||
@@ -75,7 +75,9 @@ log "INFO" "Enabling auto-updates for bridgehead@${PROJECT}.service ..."
|
||||
systemctl enable --now bridgehead-update@"${PROJECT}".timer
|
||||
|
||||
STR="\n\n systemctl start bridgehead@${PROJECT}.service\n\nor by rebooting your machine."
|
||||
if [ -e /etc/bridgehead/pki/${SITE_ID}.priv.pem ]; then
|
||||
if [ "${REQUIRES_BEAM:-true}" != "true" ]; then
|
||||
STR="Success. This project does not require Samply.Beam enrollment. Start your bridgehead by running$STR"
|
||||
elif [ -e /etc/bridgehead/pki/${SITE_ID}.priv.pem ]; then
|
||||
STR="Success. Next, start your bridgehead by running$STR"
|
||||
else
|
||||
STR="Success. Next, enroll into the $PROJECT broker by creating a cryptographic certificate. To do so, run\n\n /srv/docker/bridgehead/bridgehead enroll $PROJECT\n\nThen, you may start the bridgehead by running$STR"
|
||||
|
||||
@@ -76,9 +76,12 @@ case "$PROJECT" in
|
||||
minimal)
|
||||
site_configuration_repository_middle="git.verbis.dkfz.de/minimal-bridgehead-configs/"
|
||||
;;
|
||||
ovis)
|
||||
site_configuration_repository_middle="git.verbis.dkfz.de/ovis-sites/"
|
||||
;;
|
||||
*)
|
||||
log ERROR "Internal error, this should not happen."
|
||||
exit 1
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -115,4 +118,3 @@ chown -R bridgehead:docker /tmp/bridgehead /var/cache/bridgehead
|
||||
chmod -R g+wr /var/cache/bridgehead /tmp/bridgehead
|
||||
|
||||
log INFO "System preparation is completed and configuration is present."
|
||||
|
||||
|
||||
@@ -94,6 +94,10 @@ if [ "${PROJECT}" != "minimal" ]; then
|
||||
fi
|
||||
fi
|
||||
checkPrivKey() {
|
||||
if [ "${REQUIRES_BEAM:-true}" != "true" ]; then
|
||||
log INFO "Skipping private key check - $PROJECT does not require Samply.Beam enrollment."
|
||||
return 0
|
||||
fi
|
||||
if [ -e "${CONFIG_DIR}pki/${SITE_ID}.priv.pem" ]; then
|
||||
log INFO "Success - private key found."
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user