Skip to content

Commit

Permalink
fixed unable to start plugins issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jun 3, 2022
1 parent 3f3b40f commit 201a84c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ func (svc *Service) GetPublicPluginInfo(fullName string) (res interface{}, err e

func (svc *Service) installPublic(p interfaces.Plugin) (err error) {
if utils.IsDocker() {
p.SetInstallUrl(fmt.Sprintf("%s/%s", constants.DefaultSettingPluginBaseUrl, p.GetFullName()))
p.SetInstallUrl(fmt.Sprintf("%s/%s", constants.DefaultSettingPluginBaseUrl, p.GetShortName()))
return svc.installRemote(p)
} else {
p.SetInstallUrl(fmt.Sprintf("%s/%s", svc.ps.PluginBaseUrl, p.GetShortName()))
p.SetInstallUrl(fmt.Sprintf("%s/%s", svc.ps.PluginBaseUrl, p.GetFullName()))
return svc.installGit(p)
}
}
Expand Down

0 comments on commit 201a84c

Please sign in to comment.