From d8161abc2e139fed0636d8ddacd511a85e9b9fc6 Mon Sep 17 00:00:00 2001 From: 007hacky007 <007hacky007@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:01:00 +0200 Subject: [PATCH] fix: precreate squid config before package install --- install/squid-install.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/install/squid-install.sh b/install/squid-install.sh index 69780f13..fae576a6 100644 --- a/install/squid-install.sh +++ b/install/squid-install.sh @@ -13,12 +13,8 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt install -y squid apache2-utils -msg_ok "Installed Dependencies" - msg_info "Configuring Squid" -rm -f /etc/squid/conf.d/* +mkdir -p /etc/squid cat </etc/squid/squid.conf acl localnet src 0.0.0.1-0.255.255.255 acl localnet src 10.0.0.0/8 @@ -70,6 +66,10 @@ request_header_access X-Forwarded-For deny all EOF msg_ok "Configured Squid" +msg_info "Installing Dependencies" +$STD apt install -y squid apache2-utils +msg_ok "Installed Dependencies" + msg_info "Preparing Authentication" touch /etc/squid/passwords chmod 600 /etc/squid/passwords @@ -80,8 +80,7 @@ $STD squid -k parse msg_ok "Validated Squid Configuration" msg_info "Starting Service" -systemctl enable -q squid -systemctl restart squid +systemctl enable -q --now squid msg_ok "Started Service" motd_ssh