Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Russell Tiedt on October 28, 2000, 12:29:27 PM

Title: Office Time - Changing
Post by: Russell Tiedt on October 28, 2000, 12:29:27 PM
Hi,

Where in the templates does one change the time for office hours from 08:00 - 18:00, to 07:00 - 19:00?

Many thanks,

Russell
Title: RE: Office Time - Changing
Post by: Charlie Brady on October 29, 2000, 08:08:09 PM
Russell Tiedt wrote:

> Where in the templates does one change the time for office
> hours from 08:00 - 18:00, to 07:00 - 19:00?

You need to change the template for /etc/diald.filter.

Regards

Charlie
Title: RE: Office Time - Changing
Post by: Damien Curtain on October 30, 2000, 01:59:42 AM
Charlie Brady wrote:

> Russell Tiedt wrote:
>
> > Where in the templates does one change the time for office
> > hours from 08:00 - 18:00, to 07:00 - 19:00?
>
> You need to change the template for /etc/diald.filter.

you need to do something like

mkdir -p /etc/e-smith/templates-custom/etc

cp -a /etc/e-smith/templates/etc/diald.filter  \
    /etc/e-smith/templates-custom/etc/.

then edit the file, eg.

cat /etc/e-smith/templates/etc/diald.filter/template-begin | sed -e 's/8:00:00 17:59:59/7:00:00 18:59:59/' -e 's/7:59:59/6:59:59/' -e 's/18:00:00/19:00:00/' > /etc/e-smith/templates-custom/etc/diald.filter/template-begin

and then

/sbin/e-smith/expand-template /etc/diald.filter

--
 Damien
Title: RE: Office Time - Changing
Post by: Russell Tiedt on October 30, 2000, 08:52:51 PM
Thanks, will give it a bash and see how it comes out.

Regards,

Russell