moosh icon indicating copy to clipboard operation
moosh copied to clipboard

INFO: plugin-install Customized Plugin

Open Corradones opened this issue 5 years ago • 2 comments

Hi all, this is not an issue but just ainfo request. Is there a way to use plugin-install for a customized plugin (not present in plugin repository)?

Plugin could be in local drive or on a remote site (my personal website, not the official repository).

I found the file /usr/src/moosh/tests/commands/plugin-list.sh browsing in the system. Can i Use it to insert (by hand ) my custom plugin shortname, version and url ? Can someone help me? I think this could be useful for other people too.

Thanks a lot

Corradones avatar Dec 26 '20 10:12 Corradones

Hi! I'm not really sure if I understood the question. You just have to place your custom plugin at desired directory (local, mod, etc) and Moodle will automatically pick it up for you and install it when you execute upgrade CLI script or access admin dashboard. No need to use Moosh for that.

tezvi avatar Dec 26 '20 13:12 tezvi

this makes sense, but i would like to know if i can uniform the installing way using moosh anyway, like other plugins. I think it's just needed to write name version and local path in .moosh/plugins.json file , at all. Or simply add a custom local folder to load plugins from, without any check from system (because the folder is sysadmin managed, no need to check version or name, in my opinion)

just wondering why this feature is not implemented (if it's not implemented) . I think it should be useful including all the post installation in the sh file and manage packages (remote and local) in the same way. Any considerations appreciated

Corradones avatar Dec 26 '20 13:12 Corradones