#!/bin/bash

. ${TOOLKIT}-functions.sh

set -e

cachedir=`jtconf squid.cache_dir`

[ -d $cachedir ] || {
	create_dir $cachedir proxy:proxy 770
}

echo "  squid ACL:"
jtconf squid.acl_defines
echo


$SOMETHING_CHANGED && {
	[ -f /etc/init.d/squid ] && {
		restart_service squid || exit 1
	}
	[ -f /etc/init.d/squid3 -o -f /etc/init/squid3 ] && {
		restart_service squid3 || exit 1
	}
	##case $DISTRIB_RELEASE in
	##8.*|9.*|10.*)
		##restart_service squid squid || exit 1
		##;;
	##*)
		##restart_service squid3 || exit 1
		##;;
	##esac
}
exit 0
