From e13bf149ee61d454e20557f79052a426a9de5c20 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 12 Aug 2015 16:56:24 +0200 Subject: [PATCH] Disabled onshot by default --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f36a4a..63f60b9 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This small utility is a helper to automatically unlock a [Vault](https://www.vau # ./vault-unseal --help Usage of ./vault-unseal: --instance="http://127.0.0.1:8200": Vault instance to unlock - -1, --oneshot[=true]: Only try once and exit after + -1, --oneshot[=false]: Only try once and exit after --sleep=30: How long to wait between sealed-state checks --tokens="": Tokens to try for unsealing the vault instance ``` diff --git a/main.go b/main.go index 09e80ce..93ef85b 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ import ( ) var config = struct { - OneShot bool `flag:"oneshot,1" default:"true" description:"Only try once and exit after"` + OneShot bool `flag:"oneshot,1" default:"false" description:"Only try once and exit after"` SealTokensRaw string `flag:"tokens" default:"" description:"Tokens to try for unsealing the vault instance"` SealTokens []string VaultInstance string `flag:"instance" env:"VAULT_ADDR" default:"http://127.0.0.1:8200" description:"Vault instance to unlock"`