Plugins: Support plugin git remote with multiple versions of same plugins

This commit is contained in:
Kukks
2022-01-25 11:15:15 +01:00
parent 74037fd605
commit ecde91ff25
3 changed files with 53 additions and 24 deletions

View File

@@ -83,11 +83,11 @@ namespace BTCPayServer.Controllers
[HttpPost("server/plugins/install")]
public async Task<IActionResult> InstallPlugin(
[FromServices] PluginService pluginService, string plugin, bool update = false)
[FromServices] PluginService pluginService, string plugin, bool update = false, string path ="")
{
try
{
await pluginService.DownloadRemotePlugin(plugin);
await pluginService.DownloadRemotePlugin(plugin, path);
if (update)
{
pluginService.UpdatePlugin(plugin);