mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 06:00:18 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			508 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			508 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash -e
 | 
						|
 | 
						|
function beamFileSetup() {
 | 
						|
    if [ -n "$ENABLE_BEAM_FILE_RECEIVER" ]; then
 | 
						|
       echo "Starting beam file in receiver mode"
 | 
						|
       OVERRIDE+=" -f ./modules/beam-file-compose.yml --profile beam-file-receiver"
 | 
						|
       BEAM_FILE_SECRET="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
 | 
						|
       BEAM_FILE_API_KEY="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
 | 
						|
       log INFO "Beam File in Receiver Mode available uses ApiKey ${BEAM_FILE_API_KEY}"
 | 
						|
    fi
 | 
						|
}
 |