Skip to content

Instantly share code, notes, and snippets.

@jayalane
Created May 27, 2021 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayalane/327ad3b84091887e3287d66c55864734 to your computer and use it in GitHub Desktop.
Save jayalane/327ad3b84091887e3287d66c55864734 to your computer and use it in GitHub Desktop.
chattr -i /usr/lib/tmpfiles.d/squid.conf
#yum install -y squid
yum update -y
yum upgrade -y
yum erase -y squid || echo "No squid already there"
yum install -y squid-3.5.20-17.amzn2.4.1.x86_64
# somehow in newer AWS Linux 2 tmpfiles is restarting squid
# when it runs
cat > /usr/lib/tmpfiles.d/squid.conf <<'EOF'
# squid should not be here we don't want restarts for this
#
EOF
chattr +i /usr/lib/tmpfiles.d/squid.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment