Koozali.org: home of the SME Server

new custom template?

Bill

new custom template?
« on: September 06, 2003, 05:53:00 PM »
If I create a custom template that has no standard template entry will that template be found and expanded when running a conf update? Or should I put the custom fragments in the templates dir?

TIA

Bill

Scott Smith

Re: new custom template?
« Reply #1 on: September 06, 2003, 06:59:53 PM »
If you create a custom template for an existing configuration file, even if there is no corresponding standard template fragment, it will be processed. For example, if you create a fragment "15mycode" in the templates-custom/etc/hosts directory, it will be processed along with the other fragments.

If you create templates, custom or otherwise, for config files that don't already exist as templates -- for example, for /etc/rsyncd.conf -- then you have to create the appropriate action script in /etc/e-smith/events/actions, and also link that action into the appropriate event directories.