summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dfee758)
If squidclamav is already installed, the configuration will be saved and updated during
the upgrade process.
Reference #10367.
-#squid_ip 127.0.0.1
-#squid_port 3128
-proxy none
+squid_ip 127.0.0.1
+squid_port 800
#
logfile /var/log/squid/squidclamav.log
redirect http://127.0.0.1:81/clwarn.cgi
#
logfile /var/log/squid/squidclamav.log
redirect http://127.0.0.1:81/clwarn.cgi
maxsize 5000000
maxredir 30
timeout 60
maxsize 5000000
maxredir 30
timeout 60
#
# Do not scan standard HTTP images
abort ^.*\.(ico|gif|png|jpg)$
#
# Do not scan standard HTTP images
abort ^.*\.(ico|gif|png|jpg)$
abortcontent ^.*application\/x-mms-framed.*$
#
# White list some sites
abortcontent ^.*application\/x-mms-framed.*$
#
# White list some sites
-whitelist .*\.clamav.net
\ No newline at end of file
+whitelist .*\.clamav.net
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = squidclamav
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = squidclamav
sed -e "s|logfile.*|logfile /var/log/squid/squidclamav.log|g" /etc/squidclamav.conf
fi
sed -e "s|logfile.*|logfile /var/log/squid/squidclamav.log|g" /etc/squidclamav.conf
fi
+if [ "$VERSION" -lt "16" ]; then
+ sed -e "s/proxy none//g" -i /etc/squidclamav.conf
+ sed -e "s/^#squid_ip 127\.0\.0\.1/squid_ip 127\.0\.0\.1/g" \
+ -e "s/^#squid_port 3128/squid_port 800/g" \
+ -e "s/^#trust_cache 1/trust_cache 1/g" -i /etc/squidclamav.conf
+
+ # Regenerate configuration files.
+ perl /srv/web/ipfire/cgi-bin/proxy.cgi
+fi
+
/etc/init.d/squid restart
/etc/init.d/squid restart