2017-03-22 16:16:54 +01:00
|
|
|
#!/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..."
|
2018-01-09 17:52:12 +01:00
|
|
|
exec /usr/sbin/squid -z -F --foreground -S -f /etc/squid/squid.conf
|
2017-03-22 16:16:54 +01:00
|
|
|
fi
|
|
|
|
|