mirror of
				https://github.com/linuxserver/docker-swag.git
				synced 2025-11-04 06:52:37 +09:00 
			
		
		
		
	Update 50-config create fail2ban unauthorized.log
added code to test for existence of unauthorized.log and create it if not exists. /config/log/nginx/unauthorized.log is written to by addition of nginx-unauthorized jail in jail.local at (https://github.com/linuxserver/docker-swag/blob/master/root/defaults/jail.local)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							cf8cfd4241
						
					
				
				
					commit
					5501308aed
				
			@@ -366,6 +366,8 @@ fi
 | 
			
		||||
    touch /config/log/nginx/error.log
 | 
			
		||||
[[ ! -f /config/log/nginx/access.log ]] && \
 | 
			
		||||
    touch /config/log/nginx/access.log
 | 
			
		||||
[[ ! -f /config/log/nginx/unauthorized.log ]] && \
 | 
			
		||||
    touch /config/log/nginx/unauthorized.log
 | 
			
		||||
 | 
			
		||||
# permissions
 | 
			
		||||
chown -R abc:abc \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user