Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
Update Heroku quickstart for Fleet (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwass committed Oct 18, 2017
1 parent 0cdbe40 commit cc6d35b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func parseDSN(dsn string) (*mysql.Config, error) {
}

func execBin() error {
cmd, err := exec.LookPath("bin/kolide")
cmd, err := exec.LookPath("bin/fleet")
if err != nil {
return fmt.Errorf("looking up kolide path: %s", err)
}
Expand Down Expand Up @@ -140,9 +140,9 @@ func parseRedisURL(redisURL string) (*redisConn, error) {
}

func download() error {
resp, err := http.Get("http://dl.kolide.co/bin/kolide_latest.zip")
resp, err := http.Get("https://dl.kolide.co/bin/fleet_latest.zip")
if err != nil {
return fmt.Errorf("get latest kolide zip: %s", err)
return fmt.Errorf("get latest fleet zip: %s", err)
}
defer resp.Body.Close()

Expand All @@ -158,16 +158,16 @@ func download() error {
}

// create bin/kolide file with the executable flag.
out, err := os.OpenFile("bin/kolide", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
out, err := os.OpenFile("bin/fleet", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
if err != nil {
return fmt.Errorf("create bin/kolide file: %s", err)
return fmt.Errorf("create bin/fleet file: %s", err)
}
defer out.Close()

// extract the linux binary from the zip and copy it to
// bin/kolide
for _, f := range zr.File {
if f.Name != "linux/kolide_linux_amd64" {
if f.Name != "linux/fleet_linux_amd64" {
continue
}
src, err := f.Open()
Expand Down

0 comments on commit cc6d35b

Please sign in to comment.