Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > main > by-pkgid > 91ed187ba1cf0ae159d57fd182a85ee2 > scriptlet

DansGuardian-2.7.2-0.0.2mdk.i586.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service DansGuardian $1 dansguardian 

if [ $1 = 0 ] ; then
        rm -f /var/log/dansguardian/*
fi

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service DansGuardian $1 dansguardian 

touch /var/log/dansguardian/access.log
chown -R squid.squid /var/log/dansguardian
chmod -R u+rw /var/log/dansguardian
chmod u+rwx /var/log/dansguardian

echo -e "
Be sure to change your /etc/dansguardian/dansguardian.conf to reflect your own 
settings.
Special attention must be given to the port that squid listens on, 
the port that dansguardian will listen to and to the web url to the
dansguardian.pl cgi-script.

Author: Daniel Barron
daniel@jadeb.com
"