Anyone got a way to do this or do I need to roll my own? I want to install a module on multiple PBXs. SCP works to get the files in place, but I don’t see any way to get the module installed and enabled. Thanks!
Don’t SCP modules, that is a sure way to mess things up.
Take a look at the module_admin command, it is what you are looking for.
Thanks, that is exactly what I was looking for.
Although I agree it would definitely be safer if module_admin could install from an arbitrary .tgz file, “module_admin install” requires the uncompressed module directory to be in the modules directory already, so my SCP was necessary.
For anyone looking for this in the future, this is what I did:
scp -r module_name/ [email protected]:/var/www/html/admin/modules/ ssh [email protected] " chown -r asterisk:asterisk /var/www/html/admin/modules/module_name/; /var/lib/asterisk/bin/module_admin install module_name "