Fix overwrite check testing the name of the vhost rather than settings dict
This commit is contained in:
		
							parent
							
								
									f4bd172adc
								
							
						
					
					
						commit
						38c7c8a772
					
				@ -94,7 +94,7 @@ nginx_vhost_available_dir:
 | 
			
		||||
    - template: jinja
 | 
			
		||||
    - context:
 | 
			
		||||
        config: {{ settings.config|json() }}
 | 
			
		||||
    {% if 'overwrite' in vhost and vhost.overwrite == False %}
 | 
			
		||||
    {% if 'overwrite' in settings and settings.overwrite == False %}
 | 
			
		||||
    - unless:
 | 
			
		||||
      - test -e {{ vhost_curpath(vhost) }}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user