Skip to content

Commit

Permalink
Add link to learn more about installing fleetd (#25610)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantecatalfamo authored Jan 22, 2025
1 parent 7b26cb9 commit ee54c67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions changes/25307-fleetctl-package-link
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added link to information about installing fleetd when packages are generated
14 changes: 8 additions & 6 deletions cmd/fleetctl/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,27 +379,29 @@ func packageCommand() *cli.Command {

path, _ = filepath.Abs(path)
pathBase := filepath.Base(path)
var installInstructions = "double-click the installer"
var installInstructions = "double-clicking the installer"
var deviceType string
switch c.String("type") {
case "pkg":
installInstructions += fmt.Sprintf(" or run the command `sudo installer -pkg \"%s\" -target /`", pathBase)
installInstructions += fmt.Sprintf(" or running the command `sudo installer -pkg \"%s\" -target /`", pathBase)
deviceType = "macOS"
case "deb":
installInstructions += fmt.Sprintf(" or run the command `sudo apt install \"%s\"`", pathBase)
installInstructions += fmt.Sprintf(" or running the command `sudo apt install \"%s\"`", pathBase)
deviceType = "Debian-based Linux"
case "rpm":
installInstructions += fmt.Sprintf(" or run the command `sudo dnf install \"%s\"`", pathBase)
installInstructions += fmt.Sprintf(" or running the command `sudo dnf install \"%s\"`", pathBase)
deviceType = "RPM-based Linux"
case "msi":
installInstructions += fmt.Sprintf(" or run the command `msiexec /i \"%s\"` as administrator", pathBase)
installInstructions += fmt.Sprintf(" or running the command `msiexec /i \"%s\"` as administrator", pathBase)
deviceType = "Windows"
}

fmt.Printf(`
Success! You generated fleetd at %s
To add a new %s device to Fleet, %s.
To add a new %s device to Fleet, install fleetd by %s.
Learn more: https://fleetdm.com/guides/enroll-hosts
To add other devices to Fleet, distribute fleetd using Chef, Ansible, Jamf, or Puppet. Learn how: https://fleetdm.com/learn-more-about/enrolling-hosts
`, path, deviceType, installInstructions)
Expand Down

0 comments on commit ee54c67

Please sign in to comment.