Add new argument NOAUTO (remove scale)

This commit is contained in:
fredbcode 2021-04-27 17:16:41 +02:00
parent 53778b2f0a
commit 9f0af6a5a5
2 changed files with 1 additions and 3 deletions

View File

@ -1,12 +1,10 @@
FROM debian:buster
ARG SQUID_VERSION
ARG NOAUTO
ENV SQUID_CACHE_DIR=/var/spool/squid \
SQUID_LOG_DIR=/var/log/squid \
SQUID_USER=proxy
NOAUTO=${NOAUTO}
WORKDIR /tmp
RUN echo "deb-src http://deb.debian.org/debian buster main contrib" >> /etc/apt/sources.list && apt-get update && apt-get --no-install-recommends -y build-dep squid && apt-get --no-install-recommends -y install wget tar xz-utils libssl-dev libssl1.1 winbind \

2
run.sh
View File

@ -4,7 +4,7 @@ set -vx
# remove previous pid (if exist) after crash
rm /var/run/$HOSTNAME.pid
if [ -z $NOAUTO ];then
if [ "$NOAUTO" == "no" ];then
squid -z -n $HOSTNAME
squid -N -n $HOSTNAME
fi