Skip to content

Commit

Permalink
enable victoriametrics for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexadhy committed Mar 30, 2021
1 parent 24e6432 commit 510fd1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
1 change: 0 additions & 1 deletion cmd/cert_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"go.amplifyedge.org/booty-v2/dep"
"go.amplifyedge.org/booty-v2/internal/fileutil"
"go.amplifyedge.org/booty-v2/internal/osutil"
"os"
"path/filepath"
)

Expand Down
21 changes: 6 additions & 15 deletions dep/components/victoriametrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func (v *VicMet) Version() update.Version {

func (v *VicMet) Download() error {
// victoriametrics doesn't support windows yet
if osutil.GetOS() == "windows" {
return nil
}
//if osutil.GetOS() == "windows" {
// return nil
//}
targetDir := getDlPath(v.Name(), v.version.String())
return downloader.Download(vicMetUrlBase+"?ref=v"+v.version.String(), targetDir)
}
Expand All @@ -117,9 +117,9 @@ func (v *VicMet) Dependencies() []dep.Component {
}

func (v *VicMet) Install() error {
if osutil.GetOS() == "windows" {
return nil
}
//if osutil.GetOS() == "windows" {
// return nil
//}
dlPath := getDlPath(v.Name(), v.version.String())
var err error
binDir := osutil.GetBinDir()
Expand Down Expand Up @@ -201,9 +201,6 @@ func (v *VicMet) Uninstall() error {
}

func (v *VicMet) Run(args ...string) error {
if osutil.GetOS() == "windows" {
return nil
}
if v.svcs == nil {
svcs, err := v.service()
if err != nil {
Expand All @@ -220,16 +217,10 @@ func (v *VicMet) Run(args ...string) error {
}

func (v *VicMet) Update(version update.Version) error {
if osutil.GetOS() == "windows" {
return nil
}
return commonUpdate(v, version)
}

func (v *VicMet) RunStop() error {
if osutil.GetOS() == "windows" {
return nil
}
if v.svcs == nil {
svcs, err := v.service()
if err != nil {
Expand Down

0 comments on commit 510fd1d

Please sign in to comment.