Author Topic: best practices for hooks, stubs and templates  (Read 1457 times)

Marcello Teodori

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
    • magomarcelo's weblog
best practices for hooks, stubs and templates
« on: March 23, 2010, 03:45:09 pm »
Hi, I've been doing some customizations on my eBox 1.4 install to setup the webmail on SSL with certificate authentication and more ideas to come next.

Currently what I'm doing is modifying directly the mason templates under /usr/share/ebox/stubs/ after making a backup of each, even if I now this is not a good practice as any update on the ebox modules affected could overwrite them as stated in the documentation at:
  http://doc.ebox-platform.com/en/develop.html#service-advanced-customization

Anyway, what could be a better approach using hooks? Should I backup and overwrite the files in /usr/share/ebox/stubs with my custom version at each module start in the preservice and postservice scripts or is there a better way?

Thanks for any suggestion.
  Marcello