mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 15:20:17 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			649 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			649 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
if [ "$ENABLE_DATASHIELD" == true ];then
 | 
						|
  log INFO "DataSHIELD setup detected -- will start DataSHIELD services."
 | 
						|
  OVERRIDE+=" -f ./$PROJECT/modules/datashield-compose.yml"
 | 
						|
fi
 | 
						|
OPAL_DB_PASSWORD="$(echo \"This is a salt string to generate one consistent password for Opal. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
 | 
						|
if [ ! -e "/etc/bridgehead/traefik-tls/opal-cert.pem" ]; then
 | 
						|
  openssl req -x509 -newkey rsa:4096 -nodes -keyout /etc/bridgehead/traefik-tls/opal-key.pem -out /etc/bridgehead/traefik-tls/opal-cert.pem -days 3650 -subj "/CN=$HOST"
 | 
						|
fi
 |