mirror of
				https://github.com/docker/docker-bench-security.git
				synced 2025-11-04 02:58:59 +00:00 
			
		
		
		
	null if no config file
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								072ff1cce3
							
						
					
				
			
			
				commit
				
					
						65ff6d1015
					
				
			
		
					 1 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -87,12 +87,10 @@ get_docker_configuration_file_args() {
 | 
			
		|||
 | 
			
		||||
    if [ -f "$FILE" ]; then
 | 
			
		||||
      CONFIG_FILE="$FILE"
 | 
			
		||||
    elif [ -f '/etc/docker/daemon.json' ]; then
 | 
			
		||||
      CONFIG_FILE='/etc/docker/daemon.json'
 | 
			
		||||
    else
 | 
			
		||||
      CONFIG_FILE="/etc/docker/daemon.json"
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    if ! grep "$OPTION" "$CONFIG_FILE"; then
 | 
			
		||||
      echo 0
 | 
			
		||||
      CONFIG_FILE='/dev/null'
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue