Update all modules using command l.line

I saw this page:
http://wiki.freepbx.org/display/FPG/Upgrading+a+FreePBX+Module+from+the+CLI
that shows how to upgrade a module, but is it possible to upgrade ‘all’ modules at once using the console?

Look this: http://wiki.freepbx.org/pages/viewpage.action?pageId=37912685#fwconsolecommands(13+)-ModuleAdministration

ok thanks, from this am I correct in assuming the command is:

fwconsole upgradeall (?)

edit: just tried that -
-bash: fwconsole: command not found

and then:

amportal a r (?)

again:
-bash: amportal: command not found

1 Like

fwconsole ma updateall

or

amportal a ma updateall

3 Likes

You might need to use the full pathname for your programs. We’ve seen a lot of people having trouble with finding fwconsole and amportal recently, mostly on “manually” upgraded or installed systems.Try the following:

find / -name fwconsole
find / -name amportal

and see which of these you are running.

thanks again:
find / -name amportal found:
/usr/local/sbin/amportal

so I ran:

/usr/local/sbin/amportal a ma updateall
Fetching FreePBX settings with gen_amp_conf.php…
no repos specified, using: [commercial,standard] from last GUI settings
Up to date.
SETTING FILE PERMISSIONS…Done
Removing any dangling symlinks
Dangling symlinks removed

does that look correct to you?