Koozali.org: home of the SME Server

expand templates doesn't work anymore

Jesper Knudsen

expand templates doesn't work anymore
« on: January 06, 2003, 06:35:02 PM »
I have used the expand-template many times before but it seems to not function anymore. The below set of commands should insert an entry in the crontab file but it doesn't. I am running 5.5 with Update2

Any clues ?

[root@e-smith ]# mkdir -p /etc/e-smith/templates-custom/etc/crontab/

[root@e-smith ]# echo "0-59/5 * * * * root /etc/mrtg/all-ip" > /etc/e-smith/templates-custom/etc/crontab/mrtg

[root@e-smith ]# /sbin/e-smith/expand-template /etc/crontab

Rgds,
Jesper

stephen noble

Re: expand templates doesn't work anymore
« Reply #1 on: January 07, 2003, 07:57:02 AM »
tail /var/log/messages will tell you if you have a systax error

Jesper

Re: expand templates doesn't work anymore
« Reply #2 on: January 07, 2003, 03:22:47 PM »
I have looked at this (from the server manager though) and it contains no entries that has anything to do with expand-template. It's full of DHCP requests and others but nothing I can use.

Any other places I can search for a clue ?

Jesper

Re: expand templates doesn't work anymore
« Reply #3 on: January 16, 2003, 05:15:32 PM »
aha - some how or another the file "expand-templates" was zeroed. No wonder nothing happened. Having replaced with another from another server fixed the problem.