if you run the command:
[root@sme7test /]# /usr/bin/sarglog squid
the correct db enrties and template expansion should occur for what you want.
Take a look at the actual file:
[root@sme7test /]# vi /usr/bin/sarglog
#!/bin/sh
# select logfile for sarg
# support@dungog.net 2006
if [ "$1" = "squid" ] ; then
/sbin/e-smith/db configuration setprop sarg logfile squid
/sbin/e-smith/expand-template /etc/sarg/sarg.conf
/sbin/e-smith/expand-template /etc/cron.daily/sarg
/sbin/e-smith/expand-template /etc/cron.weekly/sarg
/sbin/e-smith/expand-template /etc/cron.monthly/sarg
echo "sarg to use squid logs"
exit 1
fi
if [ "$1" = "dansguardian" ] ; then
/sbin/e-smith/db configuration setprop sarg logfile dansguardian
/sbin/e-smith/db configuration setprop sarg values abbreviation
/sbin/e-smith/expand-template /etc/sarg/sarg.conf
/sbin/e-smith/expand-template /etc/cron.daily/sarg
/sbin/e-smith/expand-template /etc/cron.weekly/sarg
/sbin/e-smith/expand-template /etc/cron.monthly/sarg
echo "sarg to use dansguardian logs"
exit 1
fi
echo "useage"
echo "sarglog (squid|dansguardian)"
exit 1
so you chose either 'squid' to setup as I and you want or 'dansguardian'. In each case the .conf, cron jobs, and db entries are altered for that choice. Nice option altering provided by dungog!
This may be what confused me with this contrib. The simple commands above are all you need, nothing more.
Craig