mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 00:10:18 +01:00 
			
		
		
		
	fix: Create Exporter User only if Exporter is enabled (#317)
This commit is contained in:
		@@ -49,8 +49,8 @@ if [ -z "$TRANSFAIR_AUTH" ]; then
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -z "$EXPORTER_USER" ]; then
 | 
			
		||||
  log "INFO" "Now generating basic auth for the exporter and reporter (see adduser in bridgehead for more information). "
 | 
			
		||||
if [ "$ENABLE_EXPORTER" == "true" ] && [ -z "$EXPORTER_USER" ]; then
 | 
			
		||||
  log "INFO" "Now generating basic auth for the exporter and reporter (see adduser in bridgehead for more information)."
 | 
			
		||||
  generated_passwd="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 32)"
 | 
			
		||||
  add_basic_auth_user $PROJECT $generated_passwd "EXPORTER_USER" $PROJECT
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user