Koozali.org: home of the SME Server

bashrc custom template

Offline bluejay

  • 9
  • +0/-0
bashrc custom template
« 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

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: bashrc custom template
« Reply #1 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

Offline bluejay

  • 9
  • +0/-0
Re: bashrc custom template
« Reply #2 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.