From a35ddfd4d87be536be8369f680dcb2f99ef0b76c Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Sun, 12 Dec 2021 17:31:07 -0800 Subject: [PATCH] Increase session duration with --dev flag (#3339) --- cmd/fleet/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/fleet/main.go b/cmd/fleet/main.go index 5daeddecd1..0e1af85137 100644 --- a/cmd/fleet/main.go +++ b/cmd/fleet/main.go @@ -39,7 +39,7 @@ func initFatal(err error, message string) { func createRootCmd() *cobra.Command { // rootCmd represents the base command when called without any subcommands - var rootCmd = &cobra.Command{ + rootCmd := &cobra.Command{ Use: "fleet", Short: "osquery management and orchestration", Long: `Fleet server (https://fleetdm.com) @@ -61,4 +61,5 @@ func applyDevFlags(cfg *config.FleetConfig) { cfg.Mysql.Username = "fleet" cfg.Mysql.Database = "fleet" cfg.Mysql.Password = "insecure" + cfg.Session.Duration = 7 * 24 * time.Hour }