From df25ed9bde8d3b2610dbe5bd7735959abf906477 Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Tue, 27 Aug 2019 15:53:28 -0500 Subject: [PATCH] TUN-2244: Add NO_AUTOUPDATE env var --- cmd/cloudflared/tunnel/cmd.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/cloudflared/tunnel/cmd.go b/cmd/cloudflared/tunnel/cmd.go index ad746e2a..64e82978 100644 --- a/cmd/cloudflared/tunnel/cmd.go +++ b/cmd/cloudflared/tunnel/cmd.go @@ -600,10 +600,11 @@ func tunnelFlags(shouldHide bool) []cli.Flag { Hidden: shouldHide, }), altsrc.NewBoolFlag(&cli.BoolFlag{ - Name: "no-autoupdate", - Usage: "Disable periodic check for updates, restarting the server with the new version.", - Value: false, - Hidden: shouldHide, + Name: "no-autoupdate", + Usage: "Disable periodic check for updates, restarting the server with the new version.", + EnvVars: []string{"NO_AUTOUPDATE"}, + Value: false, + Hidden: shouldHide, }), altsrc.NewBoolFlag(&cli.BoolFlag{ Name: "is-autoupdated",