try to run without root user

This commit is contained in:
fredbcode 2021-12-21 09:14:41 +01:00
parent ca3ab201d2
commit 7566ffcfaf
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ RUN echo "deb-src http://deb.debian.org/debian bullseye main contrib" >> /etc/ap
--with-filedescriptors=48000 \
--enable-delay-pools \
--with-large-files \
--with-pidfile=/tmp \
--with-pidfile=/tmp/squid.pid \
--with-default-user=squid \
--enable-removal-policies="lru,heap" \
&& make \

4
run.sh
View File

@ -1,8 +1,8 @@
#!/bin/bash
if [ -e "/tmp/$HOSTNAME.pid" ];then
if [ -e "/tmp/squid.pid" ];then
echo "Squid pid: Already running ?"
rm /tmp/$HOSTNAME.pid
rm /tmp/squid.pid
pkill squid
exit 1
fi