From 9f0af6a5a57b9b0e4c21d788d57f207bdd1ac4d8 Mon Sep 17 00:00:00 2001 From: fredbcode Date: Tue, 27 Apr 2021 17:16:41 +0200 Subject: [PATCH] Add new argument NOAUTO (remove scale) --- Dockerfile | 2 -- run.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6b33c6e..f8ec232 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/run.sh b/run.sh index 7a32c53..0641a9a 100644 --- a/run.sh +++ b/run.sh @@ -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