fix visible_hostname
This commit is contained in:
parent
50fc5bb4e9
commit
f51101c505
@ -3,6 +3,7 @@
|
||||
SQUID_CACHE_DIR=${SQUID_CACHE_DIR:-/var/spool/squid}
|
||||
SQUID_COREDUMP_DIR=${SQUID_COREDUMP_DIR:-/var/cache/squid}
|
||||
SQUID_CACHE_SIZE_MB=${SQUID_CACHE_SIZE_MB:-10240}
|
||||
SQUID_HOSTNAME=${SQUID_HOSTNAME:-angrysquid.local}
|
||||
|
||||
PIDFILE=/var/run/squid.pid
|
||||
|
||||
@ -20,6 +21,7 @@ fi
|
||||
cat <<EOF >/etc/squid/conf.d/common.conf
|
||||
cache_dir aufs ${SQUID_CACHE_DIR} ${SQUID_CACHE_SIZE_MB} 16 256
|
||||
coredump_dir ${SQUID_COREDUMP_DIR}
|
||||
visible_hostname ${SQUID_HOSTNAME}
|
||||
EOF
|
||||
|
||||
if [ ! -d "${SQUID_CACHE_DIR}/00" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user