mirror of
				https://github.com/factoriotools/factorio-docker.git
				synced 2025-11-04 10:49:07 +01:00 
			
		
		
		
	Optionally use MOD_LIST_MAP env variable to handle enabling mods
This commit is contained in:
		
				
					committed by
					
						
						sarcasticgoat
					
				
			
			
				
	
			
			
			
						parent
						
							6916fcb150
						
					
				
				
					commit
					4808283c2a
				
			@@ -26,7 +26,12 @@ disable_mod()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Enable or disable DLCs if configured
 | 
			
		||||
if [[ ${DLC_SPACE_AGE:-} == "true" ]]; then
 | 
			
		||||
if [[ -n "$MOD_LIST_MAP" ]]; then
 | 
			
		||||
  # if MOD_LIST_MAP env variable is defined, then use it to determine the mods to enable
 | 
			
		||||
  for mod in $MOD_LIST_MAP; do
 | 
			
		||||
      ENABLE_MODS+=("$mod")
 | 
			
		||||
  done
 | 
			
		||||
elif [[ ${DLC_SPACE_AGE:-} == "true" ]]; then
 | 
			
		||||
  # Define the DLC mods
 | 
			
		||||
  ENABLE_MODS=(${ALL_SPACE_AGE_MODS[@]})
 | 
			
		||||
elif [[ ${DLC_SPACE_AGE:-} == "false" ]]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user