fix visible_hostname
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paolo Asperti 2020-12-14 10:16:06 +01:00
parent 50fc5bb4e9
commit f51101c505

View File

@ -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