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