squid/initialize_cache_if_needed.sh
Adam Majer 50777186fb - Update to 6.12
- Fix validation of Digest auth header parameters
- changes since squid-6.11:
  - Fix Kerberos detection when cross-compiling
  - Improve robustness of DNS code on reconfigure
  - Prevent slow memory leak in TCP DNS queries
  - Improve errors emitted when invalid ACLs are parsed

- Disble ESI. The code is removed upstream in 7.x (bsc#1232485, CVE-2024-45802)

OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=301
2024-12-09 13:10:14 +00:00

14 lines
259 B
Bash

#!/bin/sh
DIR=$(dirname $0)
CACHE_DIR=$($DIR/cache_dir.sed < /etc/squid/squid.conf)
if [ 'x'$CACHE_DIR = 'x' ]; then
exit 0
fi
if ! test -d $CACHE_DIR; then
echo "Initializing cache directories..."
exec /usr/sbin/squid -z -F --foreground -S
fi