On Tue, 18 Dec 2001, Craig Falconer wrote:

> I don't know - I'm getting out of my depth on this.
> 
> Look closer at your time definitons - perhaps theres a typo there.  Or
> consider removing time stuff altogether, and letting users have the same
> level of restrictions 24 hours a day.

I will look into it.

In regards to your updating script I modified it for my RedHat install and 
its location. I chose bash for the scripting. Here is the file below. It 
starts but it will not return at when it attempts to complete 
"ads/domains". How long does it typically take to go through your version 
of the script?

Stephen


-------------
Script
-------------
#!/bin/bash

DB_DIRS="ads aggressive audio-video drugs gambling hacking mail porn proxy violence 
warez"

for dir in $DB_DIRS ; do
        if [ -e $dir/domains~ ] ; then
                sort /usr/share/squidGuard-1.2.0/db/$dir/domains | uniq > 
/usr/share/squidGuard-1.2.0/db/$dir/1
                mv /usr/share/squidGuard-1.2.0/db/$dir/1 
/usr/share/squidGuard-1.2.0/db/$dir/domains
                echo "/$dir/domains "
    /usr/bin/squidGuard -C /usr/share/squidGuard-1.2.0/db/$dir/domains
    rm -f /usr/share/squidGuard-1.2.0/db/$dir/domains~
        fi
  if [ -e $dir/urls~ ] ; then
                sort /usr/share/squidGuard-1.2.0/db/$dir/urls | uniq > 
/usr/share/squidGuard-1.2.0/db/$dir/2
    mv /usr/share/squidGuard-1.2.0/db/$dir/2 /usr/share/squidGuard-1.2.0/db/$dir/urls
                echo "/$dir/urls "
    /usr/bin/squidGuard -C /usr/share/squidGuard-1.2.0/db/$dir/urls
    rm -f /usr/share/squidGuard-1.2.0/db/$dir/urls~
        fi
        echo "/$dir/expressions"
  /usr/bin/squidGuard -C /usr/share/squidGuard-1.2.0/db/$dir/expressions
done

/bin/echo -e "\n"

echo "Logs are in /var/log/squid/squidguard.log"

chown -R squid:squid /usr/share/squidGuard-1.2.0/db/*

/usr/sbin/squid -k reconfigure



 

Reply via email to