fleet/ee/fleetctl/updates_windows.go
Zach Wasserman e279dc1682
Implement fleetctl updates rotate (#2831)
Add support for updating keys used in the TUF update system.
2021-11-15 10:01:48 -08:00

20 lines
724 B
Go

//go:build windows
// +build windows
package eefleetctl
import "github.com/urfave/cli/v2"
func UpdatesCommand() *cli.Command {
// Update management is disabled on Windows because file permissions need to be very particular
// and the Windows permission model is vastly different from the Unix model. Instead, recommend
// the user manages updates from Linux.
return &cli.Command{
Name: "updates",
Usage: "Manage client updates",
Description: "Update management is not supported on Windows. Please use a Linux environment to continue.",
Before: func(*cli.Context) error {
return errors.New("Update management is not supported on Windows. Please use a Linux environment to continue.")
},
}
}