squidclamav: Fix permissions of /etc/squidclamav.conf.

The file must not be executable, but writeable by anybody
in the group nobody.
This commit is contained in:
Michael Tremer
2013-07-16 19:42:53 +02:00
parent 8b417dd143
commit 25848b36da
2 changed files with 6 additions and 1 deletions

View File

@@ -41,6 +41,10 @@ if [ "$VERSION" -lt "16" ]; then
-e "s/^#squid_port 3128/squid_port 800/g" \
-e "s/^#trust_cache 1/trust_cache 1/g" -i /etc/squidclamav.conf
# Fix permissions.
chmod 664 /etc/squidclamav.conf
chown root.nobody /etc/squidclamav.conf
# Regenerate configuration files.
perl /srv/web/ipfire/cgi-bin/proxy.cgi
fi