Steph, I'm actually trying to create the createlinks file and I saw yours for Roundcube (https://github.com/stephdl/smeserver-roundcube/blob/master/createlinks).
Could you explain what is done in this createlinks file ?
What should I put in mine ?
Thanks alot !
the createlinks is there to make links to
services (restart, sigusr1,reload... following an event , for example roundcube-update)
templates(do an expand-template following an event, for example roundcube-update)
actions (launch an action (it can be a perl/bash script for doign something, after/before the template-expand or after the service triggered following an event, for example roundcube-update) :
number <10 (action launched before template expansion)
number >=10<90 after template-expansion and before service triggered
number >90 action launched after service triggered
(may someone can confirm this please)
You need to make a plan of what you need, take a look of all your template2expand, services and actions to launch, but you have some mandatory events in sme. All your new event/template/service in createlinks should be tied to bootstrap-console-save (which is an event called during the reconfiguration of your server) and your new event.
Eventually you can use post-upgrade but I rather prefer to use bootstrap
What I try to do when I do an event roundcube-update, is to avoid the need to reconfigure my server, all actions,templates,services are adjusted accordingly to avoid to reboot the server.
In fact I hate to restart the server.....
However you can't use the same function in the createlinks for roundcube-update and bootstrap-console-save because a lot of actions,services and templates are already tied to this last event, so you need to look in that event and determine what are your needs