Updater: convert squid config.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 19 Dec 2010 20:12:07 +0000 (21:12 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 19 Dec 2010 20:12:07 +0000 (21:12 +0100)
config/rootfiles/core/44/update.sh

index c0abbe766c100ddaafc9882e2b37d6942b27a7b4..ff04e55183f228110f2922bf658057be002812e6 100644 (file)
@@ -171,6 +171,14 @@ mv /var/ipfire/vpn/ipsec.conf /var/ipfire/vpn/ipsec.conf.org
 grep -v "keyexchange=ikev1" /var/ipfire/vpn/ipsec.conf.org > /var/ipfire/vpn/ipsec.conf
 sed -i "s|^conn [A-Za-z].*$|&\n\tkeyexchange=ikev1|g" /var/ipfire/vpn/ipsec.conf
 
+#new squid has some changed options. Build a basic config to be able start squid.
+mv /var/ipfire/proxy/squid.conf /var/ipfire/proxy/squid.conf.org
+grep -v "header_access " /var/ipfire/proxy/squid.conf.org | \
+grep -v "error_directory " | \
+grep -v "reply_body_max_size 0" > /var/ipfire/proxy/squid.conf
+echo >> /var/ipfire/proxy/squid.conf
+echo error_directory /etc/squid/errors >> /var/ipfire/proxy/squid.conf
+
 #
 # Start services
 #