At this moment we have a scipt in /etc/cron.d which updates all modules at every night at 02:00 hour.
Now I found some older update script for cron, buth rather useless big I think.
I think that something like:
fwconsole && amportal ma upgrade framework
fwconsole && amportal ma upgradeall
fwconsole && amportal r
should be enough?
By default a root user is prohibited to do cron actions without logged in in the CLI, which can be repaired with ‘requiregetty’ with visudo.
What would be FreePBXs best choice to do this the easiest way for users who want this?
Ok let’s keep the update from Fpbx 13+.
Is the line:
fwconsole ma --quiet updateall
enough, or should we update framework first and after that ‘updateall’?
And if it is put in a /etc/cron.d/updatemodules script, should it be runned as root, or as asterisk user?
Many thanks for you advice by the way.