File tree 3 files changed +4
-8
lines changed
3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ DNSMASQ_DIR=$(WORK)/dnsmasq-$(DNSMASQ_VERSION)
20
20
SQUID_DIR =$(WORK ) /squid-$(SQUID_VERSION )
21
21
22
22
SQUIDROOT =$(shell readlink -f .) /squidroot
23
+ SQUID_VAR_OWNER =$(shell stat -c '% u' .)
24
+ SQUID_VAR_GROUP =$(shell stat -c '% g' .)
23
25
24
26
all : dnsmasq squid
25
27
@@ -41,6 +43,8 @@ squid: $(SQUIDROOT)/sbin/squid
41
43
42
44
$(SQUIDROOT ) /sbin/squid : $(SQUID_DIR ) /src/squid
43
45
make -C $(SQUID_DIR ) install
46
+ chown -R $(SQUID_VAR_OWNER ) $(SQUIDROOT ) /var
47
+ chgrp -R $(SQUID_VAR_GROUP ) $(SQUIDROOT ) /var
44
48
45
49
$(SQUID_DIR ) /src/squid : $(SQUID_DIR ) /Makefile
46
50
make -C $(SQUID_DIR ) -j$(SUBMAKE_JOBS )
Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ if [ "$1" = '-n' ]; then
42
42
43
43
echo " Configuring squid"
44
44
cat > " $SQUID_CONF " << EOS
45
- acl manager proto cache_object
46
- acl localhost src 127.0.0.1/32 ::1
47
- acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
48
-
49
45
acl SSL_ports port 443
50
46
acl Safe_ports port 80 # http
51
47
acl Safe_ports port 8080 # alternative http
Original file line number Diff line number Diff line change @@ -65,10 +65,6 @@ def self.ensure_swap_dirs_created
65
65
66
66
def self . write_config_file ( tapdevs )
67
67
config = <<EOS
68
- acl manager proto cache_object
69
- acl localhost src 127.0.0.1/32 ::1
70
- acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
71
-
72
68
acl SSL_ports port 443
73
69
acl Safe_ports port 80 # http
74
70
acl Safe_ports port 8080 # alternative http
You can’t perform that action at this time.
0 commit comments