mirror of
				https://github.com/uklans/cache-domains
				synced 2025-11-04 01:38:52 +01:00 
			
		
		
		
	Added some commentry to create-squid.sh
This commit is contained in:
		
							parent
							
								
									fa937dd75f
								
							
						
					
					
						commit
						faaff8b2f7
					
				@ -47,9 +47,13 @@ while read -r entry; do
 | 
				
			|||||||
                                parsed=$(echo ${fileentry} | sed -e "s/^\*\./\./")
 | 
					                                parsed=$(echo ${fileentry} | sed -e "s/^\*\./\./")
 | 
				
			||||||
				# If we have cdn.thing and *.cdn.thing in cache_domains
 | 
									# If we have cdn.thing and *.cdn.thing in cache_domains
 | 
				
			||||||
				# Squid requires ONLY cdn.thing
 | 
									# Squid requires ONLY cdn.thing
 | 
				
			||||||
 | 
									#
 | 
				
			||||||
 | 
									# If the fileentry starts with *.cdn.thing
 | 
				
			||||||
				if [[ ${fileentry} =~ $REGEX ]]; then
 | 
									if [[ ${fileentry} =~ $REGEX ]]; then
 | 
				
			||||||
 | 
										# Does the cache_domains file also contain cdn.thing
 | 
				
			||||||
					grep "${BASH_REMATCH[1]}" ${basedir}/${filename} | grep -v "${fileentry}" > /dev/null
 | 
										grep "${BASH_REMATCH[1]}" ${basedir}/${filename} | grep -v "${fileentry}" > /dev/null
 | 
				
			||||||
					if [[ $? -eq 0 ]]; then
 | 
										if [[ $? -eq 0 ]]; then
 | 
				
			||||||
 | 
											# Skip *.cdn.thing as cdn.thing will be collected earlier/later
 | 
				
			||||||
						continue
 | 
											continue
 | 
				
			||||||
					fi
 | 
										fi
 | 
				
			||||||
				fi
 | 
									fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user