Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: bluejay on July 22, 2014, 10:29:07 AM

Title: bashrc custom template
Post by: bluejay on July 22, 2014, 10:29:07 AM
When making changes to root/.bashrc and root/.bash_profile, is it best practice to do this via the template system?

I am just not sure whether the template system works for these files. Also will the template overwrite or append these files?

Thanks
Title: Re: bashrc custom template
Post by: Stefano on July 22, 2014, 10:31:59 AM
(almost) everything can be templated..
the template will always overwrite the original file (the templated one)

more info in developer's manual
Title: Re: bashrc custom template
Post by: bluejay on July 22, 2014, 12:15:53 PM
Thankyou. I had read the manual but it didn't mention which files could or couldn't be modified by the template system.

I have created and tested the templates and everything is working as expected.