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-02-20 08:30:53 +01:00
|
|
|
exec /usr/sbin/squid -z -F --foreground -S
|
2017-03-22 16:16:54 +01:00
|
|
|
fi
|
|
|
|
|